From kde-devel Sun May 02 19:14:23 1999 From: David Faure Date: Sun, 02 May 1999 19:14:23 +0000 To: kde-devel Subject: Re: standardizing desktop entry files X-MARC-Message: https://marc.info/?l=kde-devel&m=92567243511542 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 > "[ Desktop Entry]" and not extension. Extension should not be used > for detection at all. 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