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 |
?
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 |
sudo gedit 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"