Skip to content

Instantly share code, notes, and snippets.

@gcmurphy
Created October 15, 2012 11:41
Show Gist options
  • Save gcmurphy/3892059 to your computer and use it in GitHub Desktop.
Save gcmurphy/3892059 to your computer and use it in GitHub Desktop.
Create a .desktop file for Sublime Text 2

In Gnome 3 in order to pin an application to the panel as a 'favorite' you need to have a .desktop file.

To do this for Sublime Text 2 you simply need to:

  1. Run gnome-desktop-item-edit to create a template like so: sudo gnome-desktop-item-edit --create /usr/share/applications/sublime_text.desktop

  2. You will get a dialog to configure a new application launcher. Most of which required you to point things at where you have unpacked Sublime Text 2. For the command you need to specify $SUBLIME_HOME/sublime_text and for the icon you can pick on of the in $SUBLIME_HOME/Icons.

  3. Next start Sublime Text 2 and right click the Icon in the panel and click 'Add to Favourites'.

  4. You're done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment