Add a program (SCRIPT) to the menu bar in Ubuntu)

Source: Internet
Author: User
The program or self-written script obtained after downloading the compressed package in UbuntuLinux does not have corresponding options in the menu bar, which may not be very convenient to use. You can see that the menu bar is managed by the. desktop file in/usr/share/applications. View all the files in this folder: we can see that the menu of codeblocks is like a script file. When cat is opened, we can basically see how to compile the menu item script. Similarly, I also

In Ubuntu Linux, the program or script obtained after downloading the compressed package and decompressing it does not have the corresponding options in the menu bar, which may not be very convenient to use.

You can see that the menu bar is managed by the. desktop file in/usr/share/applications.

View All files in this folder:

We can see that the menu of codeblocks is like a script file. Open cat:

You can see how to compile the menu item script.

Similarly, I have compiled a menu item for eclipse downloaded by myself:

The last line of the file is the display name (originally eclipse. desktop by default, but it is a little ugly in the menu bar, so it is changed to this ).

After saving and exiting, you can see the eclipse menu items in the menu bar.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.