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

List:       kde-devel
Subject:    Re: standardizing desktop entry files
From:       David Faure <faure () alpha ! tat ! physik ! uni-tuebingen ! de>
Date:       1999-05-02 19:14:23
[Download RAW message or body]

On Sun, May 02, 1999 at 08:56:56PM +0200, Sven Radej wrote:
> I will repeat what I said before.
> When detecting desktop entry let's check for
> "[<anything> Desktop Entry]" and not extension. Extension should not be used
> for detection at all.  <anything> can be "KDE", "GNOME" , "UDE", "FOODE"...
> anything.

Well, the idea is good, but when it comes to implementation - I can only
see it as an awful trick.
Apps call myKConfig->setGroup("KDE Desktop Entry");

Do you (Sven and Preston at least) mean that kconfig should detect that,
and look for any group ending with "Desktop Entry" instead (hoping that
there is only one !) ?

It would work but it's a bit awkward to me.

Oh, another solution comes to my mind :
let's add a new method to KConfig, called setDesktopGroup(), which sets the
group to the "[* Desktop Entry]" one.  Looks already cleaner ;)
And it enables to support any syntax that will happen later (e.g. if UDE
decides to name their group "Desktop File for UDE" ;)

Drawback : the first solution doesn't involve fixing apps, the second one does.
Well, it's only a search and replace ;)

Opinion ?

-- 
David FAURE
david.faure@insa-lyon.fr, faure@kde.org
http://www.insa-lyon.fr/People/AEDI/dfaure/index.html 
KDE, Making The Future of Computing Available Today

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

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