Ubuntu12.04 Add the Eclipse program starter

Source: Internet
Author: User
In Ubuntu12.04dashhome, each icon corresponds to a configuration file in/usr/share/applications (the file name suffix is. desktop ). Therefore, to add a custom program initiator in dashhome, you need to create the corresponding configuration file under the file directory. For the syntax of the configuration file, see the configuration file in this directory. Take eclipse as an example. The method is as follows. System: Ubuntu12.04beta2i386

In Ubuntu 12.04 dash home, each icon corresponds to a configuration file (filename Suffix:. desktop) in/usr/share/applications ). Therefore, to add a custom program initiator in dash home, you need to create the corresponding configuration file under the file directory. For the syntax of the configuration file, see the configuration file in this directory.

Take eclipse as an example. The method is as follows.

System: Ubuntu 12.04 beta2 i386

Method:

1. Create the eclipse starter configuration file in the/usr/share/applications directory.

Cd/usr/share/applications
Sudo gedit eclipse. desktop

2. Edit eclipse. desktop and save it. Simple configuration example:
  1. #! /Usr/bin/env xdg-open
  2. [Desktop Entry]
  3. Version =1.0
  4. Type = Application
  5. Terminal =False
  6. Icon [zh_CN] =/home/xxx/Software/eclipse/icon. xpm
  7. Name [zh_CN] = Eclipse
  8. Exec =/home/xx/Software/eclipse
  9. Comment [zh_CN] = Eclipse
  10. Name = Eclipse
  11. Comment = Eclipse
  12. Icon =/home/xxx/Software/eclipse/icon. xpm

In this way, the eclipse starter is added to dash home:

Related Article

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.