Ubuntu10.04 manually add an application to the System Menu Bar

Source: Internet
Author: User

Ubuntu10.04 manually add an application to the System Menu Bar

 

Software Version:

Operating System: ubuntu10.04
Kernel version: Linux version 2.6.32-41-generic

Directory:

1. Requirements
2. Add Method
3. References

1. Requirements

Sometimes, after installing the software in Ubuntu, we can only use the command on the terminal to start it. The following uses eclipse as an example to record how to add it to the system menu bar.

2. Add Method

The method to add is simple. There are many files ending with desktop in the/usr/share/applications directory. They are the shortcuts we see in the menu. Create an eclipse. desotop file and write the following content.

[Desktop Entry]Name=eclipseType=ApplicationExec=/usr/share/eclipse/eclipseIcon=/usr/share/eclipse/icon.xpmCategories=Application;Utility;Terminal=false 

Keyword description:

Name: the name of the shortcut.
Type: program type.
Exec: the program to be executed.
Icon: the icon of the execution program.
Categories: the location where the shortcut is displayed.
Terminal: whether to use a terminal.

After saving, the shortcut appears in Ubuntu ---> Applications ---> accessories.

3. References

Http://wdwheyr.iteye.com/blog/945008.
Http://hi.baidu.com/pyc21/blog/item/8765bf0f9bec5c3b6059f335.html.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.