mimeapps.list and mimetype inheritance
adys.wh at gmail.com
Thu Jan 17 18:37:55 PST 2013
Have you gotten an answer to this? I'm interested.
On Wed, Dec 26, 2012 at 7:31 PM, David Faure <faure at kde.org> wrote:
> Hi Alexander,
> When you implemented support for mimeapps.list in glib, did that include
> looking up inherited mimetypes, or is that not supported?
> Here's an example.
> emacs.desktop says:
> My mimeapps.list says:
> (and has no entry for text/x-csrc)
> When opening a text/plain file, kate is selected, no problem.
> But when opening a text/x-csrc file, emacs is selected.
> Is this expected?
> The question is: should the user's preference for text/plain have priority
> over the fact that a .desktop file mentions the derived mimetype
> As a user, I would expect that (so that I can select a text editor for all
> inherited mimetypes in one click).
> But implementation-wise, this is a bit tricky, because of the interaction
> multiple dirs in XDG_DATA_DIRS, and with "Removed Associations", so I was
> wondering if this was implemented in glib, and if so, whether we could
> on a common algorithm.
> The spec  doesn't currently mention mimetype inheritance.
>  http://www.freedesktop.org/wiki/Specifications/mime-actions-spec
> David Faure, faure at kde.org, http://www.davidfaure.fr
> Working on KDE, in particular KDE Frameworks 5
> xdg mailing list
> xdg at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the xdg