Forked from thebinarypenguin/sublime-text-2.desktop
Created
December 12, 2015 14:23
-
-
Save AnwarShah/29aab7367980311cc866 to your computer and use it in GitHub Desktop.
A desktop application launcher for Sublime Text 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Desktop Entry] | |
| Type=Application | |
| Terminal=false | |
| StartupNotify=true | |
| Name=Sublime Text 3 | |
| Name[en_US]=Sublime Text 3 | |
| GenericName=Text Editor | |
| GenericName[en_US]=Text Editor | |
| Comment=Edit text files | |
| Comment[en_US]=Edit text files | |
| Exec=/opt/sublime_text/sublime_text %U | |
| Icon=/opt/sublime_text/Icon/128x128/sublime-text.png | |
| Categories=Development;TextEditor; | |
| MimeType=text/plain; | |
| Actions=Window; | |
| [Desktop Action Window] | |
| Name=Open a New Window | |
| Name[en_US]=Open a New Window | |
| Exec=/opt/sublime_text/sublime_text --new-window %U | |
| OnlyShowIn=Unity; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes
This file should be saved in
~/.local/share/applications/or/usr/share/applications/Documentation for the
.desktopfile format can be found here http://standards.freedesktop.org/desktop-entry-spec/latest/If you're using GNOME Shell you probably want to include the
--new-windowflag in both Exec linesSetting as default text editor
Create
~/.local/share/applications/defaults.listif it doesn't already existOpen
/usr/share/applications/defaults.listand copy the appropriate mime type lines into~/.local/share/applications/defaults.listEdit the lines to point to sublime-text-3.desktop
It should look like this
Credit
The original file was for sublime-text-2 from this gist https://gist.github.com/thebinarypenguin/2963829