Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.