A PCRE internal error occured. This might be caused by a faulty plugin
====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tricks:application-icon [2015/08/25 01:20] admin [Download/Extract the Application] |
tricks:application-icon [2015/08/25 01:31] admin [Create a Menu Icon] |
||
---|---|---|---|
Line 33: | Line 33: | ||
export SUBLIME_HOME="/opt/sublime" | export SUBLIME_HOME="/opt/sublime" | ||
$SUBLIME_HOME/sublime_text "$*" | $SUBLIME_HOME/sublime_text "$*" | ||
+ | |||
+ | Save the file (Ctrl+x - y) | ||
+ | |||
+ | > sudo chmod 775 /usr/bin/sublime_text | ||
</code> | </code> | ||
+ | |||
+ | ===== Create a Menu Icon ===== | ||
+ | |||
+ | <code> | ||
+ | > sudo nano /usr/share/applications/sublime.desktop | ||
+ | |||
+ | Paste: | ||
+ | [Desktop Entry] | ||
+ | Encoding=UTF-8 | ||
+ | Name=Sublime Text | ||
+ | Comment=Sublime Text 2 | ||
+ | Exec=sublime_text | ||
+ | Icon=/opt/sublime/Icon/256x256/sublime_text.png | ||
+ | Terminal=false | ||
+ | Type=Application | ||
+ | Categories=GNOME;GTK;Utility;TextEditor; | ||
+ | StartupNotify=true | ||
Save the file (Ctrl+x - y) | Save the file (Ctrl+x - y) | ||
+ | </code> | ||
+ | |||
+ | You should now find the Sublime Text icon in **Menu > Accessories > Sublime Text** | ||
+ | |||
+ | For a list of categories, refer to th [[http://standards.freedesktop.org/menu-spec/latest/apa.html|freedesktop.org Registered Categories list]] as well as the [[http://standards.freedesktop.org/menu-spec/latest/apas02.html|additional categories]]. |