您的位置:首页 > 其它

Create a Sidebar launcher for Sublime Text 2 in...

2013-06-03 13:33 573 查看

Create a Sidebar launcher for Sublime Text 2 in Ubuntu Unity

By Jon Saints - 25 Oct 2012

Using the example in this post, I created a launcher icon for Sublime Text 2 in Ubuntu 12.10.

Here is how:

sudo nano -w  /usr/share/applications/sublime.desktop</pre>

Then paste in the following (make sure to update my file paths with your file paths):

[Desktop Entry]
Version=1.0
Name=Sublime Text 2
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Text Editor

Exec=/home/jon/Programs/SublimeText2/sublime_text %F
Terminal=false
Icon=/home/jon/Programs/SublimeText2/Icon/48x48/sublime_text.png
Type=Application
Categories=TextEditor;IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow

[NewWindow Shortcut Group]
Name=New Window
Exec=/home/jon/Programs/SublimeText2/sublime_text
TargetEnvironment=Unity

Then click the Ubuntu button on the top of the sidebar. Type “Sublime” and notice that SublimeText2 appears as a launcher. Open it and right click to lock to your launcher bar.

note: %F is important for the open type
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐