On Tue, May 20, 2008 at 09:35:02AM +0200, Jesús Guerrero wrote:

>> I think so. I don't have GNOME / KDE on my system (just Fvwm). But the
>> Gtk / KDE programs seem to put their ".desktop" files in
>> /usr/share/applications. (Doing "locate .desktop" showed mainly files in
>> /usr/share/applications. However there were a few in some service
>> directory corresponding to plugins).
> 
> Note that some of them might be distro dependant. KDE uses a variable to keep
> track of it's base path, so, maybe it's worth to check that path's and then
> add the other part of the path to them, because some distros might install
> kde to a different locations (i.e. /usr vs. /opt or even the users home).
> 
> That variable is $KDEDIRS.

Yep, you're right. I checked on a system with KDE programs, and I found
a whole bunch of .desktop files in /usr/kde/3.5/share/applications/.

The menu file /usr/kde/3.5/etc/xdg/menus/applications.menu contained all
the info I needed to generate complete menus though,

GI

-- 
Where there's a will there are five hundred relatives.

Attachment: pgpP2qtxSSplW.pgp
Description: PGP signature

Reply via email to