Have a way to dynamically change software associations at distribution level
faure at kde.org
Wed Aug 5 16:00:58 PDT 2009
On Thursday 06 August 2009, Didier Roche wrote:
> Hum, a solution can be:
> - use a global Priority entry
> - if we have a specific value for some mime-type to set. we can use
> mime;priority; format.
> For instance (I took vlc as it handles a lot of mime types):
InitialPreference=10, please, no point in changing the name of the existing key ;)
(no trailing ';', either, this isn't a list but a single number)
> So, vlc will be associated with a 5 priority for video/dv and 7 for
> video/mpeg. All others mime type will have the Priority entry value,
> that is 10 in this case (and 1 if not specified).
> Does that makes the syntax a little bit easier? (ok, I'm sure you will
> tell me it's already working like that in KDE ;-))
Yes, this is _exactly_ how it works in KDE :-)
Well, maybe it wasn't such a bad solution after all :)
David Faure, faure at kde.org, sponsored by Qt Software @ Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the xdg