Default Program | File Association

David Faure dfaure at trolltech.com
Tue Jan 29 09:47:01 PST 2008


On Tuesday 29 January 2008, Stanislav Brabec wrote:
> Mhall wrote:
> 
> > > * it wouldn't solve "gnome and kde want to start a different text editor" either.
> > Yes, I do see how that is a problem, especially since alternatives is global not per-user.  But then again, maybe a KDE user wants GEdit to open text/plain instead of Kate, you never know.  How exactly is this solved now?  Sorry if it's already been explain, I've only recently been paying attention.
> 
> KDE uses InitialPreference. GNOME uses defaults.list.

No, the "initial" preference is only initial: in the absence of user configuration.
If a KDE 3 or 4.0 user wants to use GEdit, the configuration module writes out a profilerc file.
In 4.1 it will be written to defaults.list.

This problem is solved. What is not solved is the default order, when NO user-configuration exists,
but it was pointed out that the default order is desktop-dependent anyway, so the implementation
can stay desktop-dependent. I just don't want that installing a (gnome) applications means
that some script will automatically change defaults.list... The app itself can do it if the user clicks
"yes make this the preferred app", at runtime, then it's okay. But not at "make install" / apt-get / rpm time.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the xdg mailing list