I'd say anything that breaks the "one app per desktop file" idiom is a bad idea. It breaks the entire declarative way behind desktop file and can cause all sorts of problems; what you just mentioned is one instance of it. Seeing duplicates in launchers, menus etc can be another (nevermind NoDisplay). J. Leclanche
On Mon, Jan 13, 2014 at 8:50 AM, Bastien Nocera <[email protected]> wrote: > On Sat, 2014-01-11 at 13:36 +0100, Albert Astals Cid wrote: >> El Dissabte, 11 de gener de 2014, a les 02:28:18, Jerome Leclanche va >> escriure: >> > Consider the following use case: >> > >> > "gimp" supports image/png. "gimp-webp-plugin" makes gimp support >> > image/webp. >> > >> > How would gimp-webp-plugin declare that it makes another app support >> > additional mime types? I don't think it's possible currently. >> > Suggestions? >> >> In Okular we just install another .desktop with the same main keys (Name, >> exec, type, etc) except it has a different mimetype and NoDisplay=true >> >> That works fine under KDE but I've been told not so good under >> gnome/glib/gtk/whatever does the .desktop parsing. >> >> IMHO it's quite a clean an easy way to do it, but I do not have much in depth >> knowledge of how this works/is supposed to work. > > It works fine under GNOME, but it will break some other functionality > like "Default applications" because there's no way to back link to the > original desktop file (the one without NoDisplay=true). > > _______________________________________________ > xdg mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/xdg _______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
