A PCRE internal error occured. This might be caused by a faulty plugin

**This is an old revision of the document!** ----

A PCRE internal error occured. This might be caused by a faulty plugin

====== Create Executable and Icon for an Application ====== From time to time, one might download a fully executable app, that will launch by double clicking on it's icon but with no install process. Those applications won't appear in the "Menu > Applications" list, nor will you be able to add them to a panel. To circumvent this problem here is an example demonstrating how to [[http://community.linuxmint.com/tutorial/view/907|install sublime text]] and create a desktop icon for it. ===== Download/Extract the Application ===== Use the following address to download the latest version of Sublime Text:\\ http://www.sublimetext.com/2 Then right click on the downloaded .tar.bz2 archive and and select "extract here"... === Move to /opt and change access rights === It is of use, in the Linux environment, to put "extra" software in the /opt directory. To do this, you'll need to have admin rights: <code> > cd ~/Downloads > mv "Sublime Text 2" sublime > sudo mv sublime /opt > cd /opt > sudo chown -R root:root sublime > sudo chmod -R +r sublime </code> ===== Create Executable in /usr Path ===== <code> > sudo nano /usr/bin/sublime_text Paste: #!/bin/sh export SUBLIME_HOME="/opt/sublime" $SUBLIME_HOME/sublime_text "$*" Save the file (Ctrl+x - y) > sudo chmod 775 /usr/bin/sublime_text </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) </code> You should now fin the Sublime Text icon in **Menu > Accessories > Sublime Text**