[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: More KServiceTypeProfile thoughts (and why gvim gets launched
From:       Cristian Tibirna <ctibirna () total ! net>
Date:       1999-11-16 8:55:43
[Download RAW message or body]

On Tue, 16 Nov 1999, Stefan Taferner wrote:

> On Tue, 16 Nov 1999, David Faure wrote:
> > In the last discussion about it we (especially Preston, Torben and I, IIRC)
> > decided that before the user configures anything (using filetypes),
> > the preferred service would be arbitrarily chosen from the installed services.
> > 
> > Result : for text/plain, the default gets set to gvim instead of kedit 
> > or write ! (for those who have gvim installed, found by kappfinder)
> > 
> > It works as we said, but do we really want to ship a desktop whose default
> > action for text files is opening the ugly, non-user-friendly-at-all gvim ? :-)
> > 
> > I see no other solution that what I suggested long ago : a preference number
> > IN the application desktop file, serving as default (overriden by the 
> > user's profile).
> 
> Actually this is how the mimetypes file works. There the preference is
> the order in the file, but nevertheless it is there.
> 
> I think there is no other good solution possible.
> Well, a simple is_default boolean switch would be possible also.
> But a preference number is better, as the switch breaks if you remove the
> default desktop file.

If you choose preference numbers, make smaller number most significative.
I mean, put '0' on kwrite and '3' on gvim and not the other way around.
Why? Look at what the samba team does with the prefered browser servers
on an NT lan :-)

Cristian

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic