Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have some CentOS 5.5 systems. I have installed the rdesktop rpm, however no entry appears to be made in the gnome or kde menus for it.

Where is the menu structure in the filesystem? Is it one location shared for both Gnome and KDE installations, or are they in separate places?

I am presuming that once I find this structure, I can copy an existing entry and point it at my newly installed program (rdesktop in this case). I want to do this so that I can do it automatically at kickstart time in the future. Is this a bad assumption? Should I do this another way?

Update: It turns out rdesktop actually did install an icon, intuitively named "krdc". But the general question stands.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

According to the Freedesktop specification, which both GNOME and KDE support, the recommended filesystem locations for placing .desktop files are:

  • /usr/share/applications for system-wide menu items;

  • ~/.local/share/applications for user-private menu items.

The command-line utility xdg-desktop-menu is provided to install .desktop files in a specific submenu (identified by a .directory file).

share|improve this answer
    
This is indeed the way to do it. –  David Mackintosh Oct 5 '10 at 18:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.