[Go]ubuntu 12.04 Add Launcher method

Source: Internet
Author: User
Tags sublime text

[Go]ubuntu 12.04 Add Launcher method

Http://www.cnblogs.com/Jerryshome/archive/2012/08/21/2649500.html

Make a record of the Ubuntu 12.04 Custom launcher method, hoping to help a friend in need

Example of a launcher definition of sublime text 2
(1) Add introduction command to start sublime
sudo ln-s/opt/softwares/sublime_text2/sublime_text/usr/bin/sublime
(2) Create a launcher in unity
sudo sublime/usr/share/applications/sublime.desktop
In Sublime.desktop, add the following:
[Desktop Entry]
Name=sublime Text 2
Genericname=sublime Text 2 Editor
Type=application
Exec=/opt/softwares/sublime_text2/sublime_text
Icon=/opt/softwares/sublime_text2/icon/48x48/sublime_text.png
Categories=texteditor;ide;development;
X-ayatana-desktop-shortcuts=runroot; NewWindow
[Runroot Shortcut Group]
Name=run as Root
Exec=gksudo-k-U Root/opt/softwares/sublime_text2/sublime_text
Targetenvironment=unity
[NewWindow Shortcut Group]
Name=new Window
Exec=/opt/softwares/sublime_text2/sublime_text-n
Targetenvironment=unity

(3) If the sublime is running at this time, the Launcher window on the left side of Ubuntu should appear with a sublime icon, right click and select Lock to Launcher

Note: The installation path of sublime should be adjusted according to the actual situation

[Go]ubuntu 12.04 Add Launcher method

Related Article

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.