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