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>

We have a long time opened problem with association of default

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

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

# These applications should be default for all MIME types they support.
# This application is preferred over Default applications for all MIME types
they support.
# but moonshine should be default for listed MIME types
well, reverse syntax may be better, who knows
# You may want to remove applications you inherit
# Or ignore some applications and never use them as default
# If there is no application listed above, prefer application with these
# And if everything fail, try inherited class

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


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

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

< Previous Next >
Follow Ups