Default Program | File Association
Alexander Larsson
alexl at redhat.com
Wed Jan 30 06:04:22 PST 2008
On Wed, 2008-01-30 at 14:15 +0100, Stanislav Brabec wrote:
> 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?
>
Clearly 2. An explicitly mentioned handler of a more specific class is
much more likely to be what the user wants by default. Otherwise you'll
never get anything but gedit for any kind of text based fileformat in
the example above.
More information about the xdg
mailing list