Add a custom program to the menu in Fedora

Source: Internet
Author: User

The article title is for Fedora, in fact, it is estimated to use GNOME3 system are effective, but because only use the Fedora system, so you have to use this name, you can try it yourself.

0. Background

Used to Redhat/centos when the desktop is GNOME2, you can directly on the desktop link, are OK (although not many). But the recent period of time the operating system replaced FEDORA22, the desktop is GNOME3, the previous attempt to redhat7 when the desktop is so ugly ah, but no way can only be used, but slowly still really a bit like this desktop.

However, there is a problem, that is, for the decompression of the software (such as Eclipse), the desktop can not create a shortcut, although it may be added to the path inside, but the total feeling uncomfortable, and later for some reasons use Webstorm, is also decompression is used, But after the first run, there is a pop-up box, the XI is confused to confirm, and later found that the Start menu has it, I know there is a way to add the custom program to the menu.

Later on the Internet to find some information, the successful installation of Eclipse added to the menu, the following is a few of my instructions, I hope to have the necessary people some help.

1. Find information on the Internet

Have to say that search engines are good things, a search a lot, but still need to filter/collation.

At that time specifically what keywords to search for forgotten, but the result is a lot of, have said very detailed, involving a lot of GNOME desktop details up, overall down, I think there is a thing very useful,--"a menu item will have a corresponding. desktop file", And there are many articles about how this desktop file should be written, what it means, and so on.

Here is a link to two articles:

GNOME3 Desktop or top bar Add program Desktop entry (with a detailed explanation of the desktop entry file included)

RedHat add an application to the Gnome menu

You can also get to know, I do not have an example here.

2, Webstorm is how to add in

Before all said, Webstorm's program will let the user confirm, and then add themselves into the menu, so certainly generated the corresponding desktop file, according to the online list of several paths, quickly found the corresponding file:

In the path:

/usr/local/share/applications

Files found: Jetbrains-webstorm.desktop, the contents of the file are as follows:

[Desktop Entry] Version=1.0type=applicationname=webstormicon=/opt/webstorm-141.1550/bin/webide.pngexec= "/opt/WebStorm-141.1550 /bin/webstorm.sh "%fcomment=develop with pleasure! Categories=development;ide; Terminal=falsestartupwmclass=jetbrains-webstorm

At that time I will the content of this file with the online introduction of a comparison, found that understanding, the introduction of the Internet is also very good, next I roughly say.

3. Key points of the. Desktop file
      • Exec This is the program that needs to be executed, that is, we click on the corresponding menu item and then execute the program.

      • Icon This is icons, gnome default is similar to the Mobile app list icon display, this is a picture

      • Name, which appears below the icon

      • Categories Attribution category, this needs to be reflected in the menu list

There are other entries that don't have to be overly concerned.

4. Add your own programs

The program I'm adding is the Spring custom Eclipse release--sts, and the other programs add the same method, just find the executable file.

In the directory:

/usr/local/share/applications

Create (require sudo) file in: Sts.desktop, then fill in the file with the following content:

[Desktop Entry] Version=1.0name=spring Tool suitegenericname=stsgenericname[zh_cn]=stscomment=stscomment[zh_cn]=stsexec=/opt/ Sts-3.7.0.release/sts%uterminal=falseicon=/opt/sts-3.7.0.release/icon.xpmtype=applicationcategories= Development;ide;

This document I originally was to follow the online article oneself piece out, now think, should directly copy webstorm and then modify.

5. The added program takes effect

Once added, it is immediately possible to find the icon added, if not seen, it should be a problem in the file. However, if you modify the original normal file, then it may not be effective immediately, you need to restart the desktop.

6. PostScript

With the purpose, through the introduction of the Internet and their own groping (intermediate configuration error several times), finally, the STS program's boot Menu icon added to the system list, and then you can directly click on the mouse is good, very convenient.

However, after the use of the eclipse itself to find the egit of the gnome problem, and then after the exploration to solve (this is something), I would like to say in the next blog about the problem and solve the process and solutions!

enjoy!!

Add a custom program to the menu in Fedora

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.