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

2013/06/03 13:33
阅读数 246

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
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部