SUSE Conversations


Adding a Menu Item to the Application Menu



By: rholder

September 14, 2006 12:00 am

Reads:208

Comments:0

Rating:0

Problem:

You’ve installed a new application to SUSE Linux Enterprise 10 but it did not use “Install Software”, how do you add it to the application menu?

Solution:

Create a .desktop file and place it in /usr/share/applications directory.

How it’s done:

I used the following to create a new menu item for Eclipse, an application installed on my machine by unzipping files.

Open a terminal window and login as Root using the command “su”, enter your root password.

To ensure I had the correct format, I opened an existing .desktop file in gedit:
#gedit /usr/share/applications/gwclient.desktop

I modified the entry so that only the following remained:

[Desktop Entry] 
Name=Eclipse 
Comment=Eclipse 
GenericName=Eclipse 
Exec=/home/rholder/eclipse/eclipse <-- location of eclipse executable 
Icon= 
Terminal=0 
Type=Application 
Categories=Application;Development; 0 <-- Show option in both New Applications and Development 

After saving, the menu option should appear in a few seconds.

Environment:

SLED10, GEDIT, Terminal window

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Categories: Uncategorized

Disclaimer: As with everything else at SUSE Conversations, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.

Comment

RSS