There are no shortcuts on Ubuntu, and software Center-installed apps have icons and can be added to the launcher because they have a desktop configuration file. These configuration files under /usr/share/applications
This folder, since this kind of, casually open a configuration file, and then according to gourd painting Scoop, wrote a sublime text of the desktop file:
12345678910 |
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Sublime Text 2
Comment=Sublime Text 2
Exec=/usr/local/software/sublime/sublime_text
Icon=/usr/local/software/sublime/Icon/48x48/sublime_text.png
Terminal=
false
Type=Application
Categories=Application;Development;
StartupNotify=
true
|
There are only a few places to modify:
- Name: It's the title.
- Comment: equivalent to annotations
- Exec: Path to executable file
- Icon path, Sublime text default is the icon with a variety of models
Several other settings are primarily categories, and if you put this profile /usr/share/applications
in a folder, you can find the software in the appropriate category through Ubuntu Software management. Save the above file, for example sublime.desktop(一定要以desktop结尾)
, and make sure to give permission to execute, and then double-click to open Sublime text, and the icon on the launcher can also be fixed.
Ubuntu pinning apps to the Quick Launch bar