Ubuntu pinning apps to the Quick Launch bar

Source: Internet
Author: User
Tags sublime text

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

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.