Default Program | File Association

Stanislav Brabec sbrabec at suse.cz
Wed Jan 30 05:15:33 PST 2008


Thiago Macieira wrote:

> Suggestion:

> gedit.desktop:
> [InitialPreferences]
> text/plain=6
> 
> [InitialPreferences-GNOME]
> text/plain=9

Such preference system should also handle sub-classes somehow:

Suppose that GNOME web browser is not present.

What is better for text/html?

1) gedit with InitialPreference-GNOME 9 for text/plain (text/html is
   sub-class-of text/plain).
2) konqueror with InitialPreference 5 for text/html?


And in real life, configuration files will not be so simple:

gedit.desktop:
[InitialPreferences]
application/x-shellscript=3
text/plain=6
text/x-c=3
text/x-c++=3
text/x-c++hdr=3
text/x-c++src=3
text/x-chdr=3
text/x-csrc=3
text/x-java=3
text/x-makefile=3
text/x-moc=3
text/x-pascal=3
text/x-tcl=3
text/x-tex=3

[InitialPreferences-GNOME]
application/x-shellscript=5
text/plain=9
text/x-c=5
text/x-c++=5
text/x-c++hdr=5
text/x-c++src=5
text/x-chdr=5
text/x-csrc=5
text/x-java=5
text/x-makefile=5
text/x-moc=5
text/x-pascal=5
text/x-tcl=5
text/x-tex=5

-- 
Best Regards / S pozdravem,

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



More information about the xdg mailing list