"Summary" resolves Ubuntu lock icon problem on launcher, take sublime Text2 for example "pending modification"

Source: Internet
Author: User
Tags sublime text

Linux some green software, do not need to install to double-click to start, but some programs open directly in the Launcher right-click on the Lock to Launcher will use some default icons, usually if your aesthetic standards in line with the popular trend, it should not be considered very beautiful, Even if some software is locked in Launcher, click and flash a burst of nothing will happen, such as Sublime Text (perhaps my personal situation, but the solution is exactly the same)

So, how do those programs that can be locked in Launcher and clicked to start?

In your terminal, enter the following command in turn:

?
1 cd/usr/share/applications
?
1 ls-a

You'll see a lot of files ending in. Desktop (roughly, for example), these are profiles of programs that you can click to start in Launcher with beautiful icons, called Desktop Entry.

Next, we'll create a Desktop Entry with Sublime Text.
Please enter the following instructions at the terminal (please switch to the/usr/share/applications directory using the instructions in the previous step first):

?
1 sudogedit sublime-text.desktop

Then go to the text editor and enter the information roughly as shown (the English system can ignore the parts in the red box):

Where icon is the name of the path that you want to display in Launcher, Comment is the description. Perhaps there are children's boots to ask, this "%F" is what, in fact, this is the ability to let the program appear in the "Other way to launch" in the list of meaning!
Note: The paths here need to be used to determine the path, and the environment variables (perhaps not allowed by my system) cannot be used.

After saving, you double-click Start Sublime text, and then lock to Launcher, at this time, close Sublime text, then click the icon in the Launcher can start the program smoothly!

Reference:

http://my.oschina.net/Obahua/blog/110612

Thank the original author for sharing!

Summarize to fix Ubuntu lock icon problem on launcher, take sublime text2 for example "to be modified"

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.