Skip to content

Instantly share code, notes, and snippets.

@manutter51
Created May 26, 2013 18:34
Show Gist options
  • Save manutter51/5653640 to your computer and use it in GitHub Desktop.
Save manutter51/5653640 to your computer and use it in GitHub Desktop.
Linux/gnome desktop entry file. Put this file in ~/.local/share/applications/ to get Ubuntu desktop to use Sublime Text 2 as a well-known text editor. Note that I've hard coded my personal directory paths in the Exec and Icon lines, so edit this to suit your own situation.
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name=Sublime Text 2
GenericName=Text Editor
Comment=View and edit files
Exec=/home/mark/SublimeText2/sublime_text %F
Icon=/home/mark/SublimeText2/Icon/128x128/sublime_text.png
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;text/x-clj;text/x-cljs
Categories=Utility;Development;TextEditor;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment