Mailinglist Archive: opensuse-gnome (50 mails)

< Previous Next >
[opensuse-gnome] designing new default application selection (gnome_defaults.conf, defaults.list)
  • From: Stanislav Brabec <sbrabec@xxxxxxx>
  • Date: Wed, 15 Jul 2009 20:30:07 +0200
  • Message-id: <1247682607.1213.33.camel@xxxxxxxxxxxxxx>
Hallo.

We have a long time opened problem with association of default
applications:
https://bugzilla.novell.com/show_bug.cgi?id=456026

Also Moblin session would need different defaults than GNOME session.

Easiest way seems to be adding this heuristic to the desktop-file-utils,
which processes desktop files anyway, and allow defaults.list with (XDG)
desktop prefix.

Now I am thinking about the configuration file that should
replace /etc/gnome_defaults.conf. It should be parseable as g_key_file
(.ini file).

Using experiences from the old syntax, two levels of preference seems to
be required. It is possible to make more levels of preference, but I am
not sure, whether it makes sense (to say: Use goodplayer.desktop. If
betterplayer.desktop supports this MIME type, prefer it, but if
bestplayer.desktop supports this MIME type, use it). Reversely, it is
possible to live completely without two levels of preference, just with
inheritance.

Probably more files should be supported to allow separate e. g.
gnome-defaults.conf and moblin-defaults.conf.


Here is my idea. Any opinions?

[Desktop Defaults]
# ... maybe something will be here as well

[GNOME]
# These applications should be default for all MIME types they support.
Default=eog.desktop;evince.desktop;gedit.desktop;file-roller.desktop;nautilus-folder-handler.desktop;MozillaFirefox.desktop
# This application is preferred over Default applications for all MIME types
they support.
Prefer=banshee-1.desktop
# but moonshine should be default for listed MIME types
moonshine.desktop=video/x-ms-asf-plugin;video/x-ms-asf-plugin
well, reverse syntax may be better, who knows
video/x-ms-asf-plugin=moonshine.desktop
video/x-ms-asf-plugin=moonshine.desktop
# You may want to remove applications you inherit
Remove=...
# Or ignore some applications and never use them as default
Ignore=...
# If there is no application listed above, prefer application with these
Categories:
Categories=GNOME
# And if everything fail, try inherited class
Inherit=GTK

[GTK]
Categories=GTK
# Well, items in [Desktop Defaults] are always inherited

[KDE]
...


--
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 966, +49 911 740538747
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/

--
To unsubscribe, e-mail: opensuse-gnome+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-gnome+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups