Aliases in mimeapps.list
alexl at redhat.com
Tue Mar 2 01:28:20 PST 2010
On Mon, 2010-03-01 at 19:12 +0100, David Faure wrote:
> Hi Alexander,
> [sorry for resending, CC was wrong in first email]
> I have a question: how do you handle aliases in mimeapps.list?
> If someone writes
> and given that x-pdf is an alias for pdf, what happens?
> AFAICS the only solution is to ignore lines about aliases,
> and only write down associations for the "real" mimetype, right?
Actually, what we currently do is unalias each type in the mimeapps.list
file as we read it, so in the above example the second line would
override the first.
However, i don't think we ever produce mimeapps.list files with aliased
mimetypes, since all mimetypes that appear in the UI and such are
unaliased first. So, the only way to get such a file would be to edit it
Alexander Larsson Red Hat, Inc
alexl at redhat.com alexander.larsson at gmail.com
He's a lounge-singing albino rock star on a search for his missing sister.
She's a sarcastic kleptomaniac angel with only herself to blame. They fight
More information about the xdg