My sublime-text 2 editor no longer starts when I click it's icon in my dock.
The icon does the normal slow pulsing for a while (unity) but nothing seems to load.
How can I determine why sublime has started failing?
UPDATE
Output of $ cat /usr/share/applications/sublime-text-2.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Sublime Text 2
GenericName=Text Editor
Comment=Sophisticated text editor for code, html and prose
Exec=/usr/bin/sublime-text-2 %F
Terminal=false
Type=Application
MimeType=text/plain;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-dsrc;text/x-pascal;text/x-perl;text/x-python;application/x-php;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/xml;text/html;text/css;text/x-sql;text/x-diff;x-directory/normal;inode/directory;
Icon=sublime-text-2
Categories=TextEditor;Development;Utility;
Name[en_US]=Sublime Text 2
X-Ayatana-Desktop-Shortcuts=NewWindow;
[NewWindow Shortcut Group]
Name=Open a New Window
Exec=/usr/bin/sublime-text-2 --new-window
I believe this is a fix of the sublime-won't-start problem: link.
Basically what it does is - it reverts the Sublime to its initial state by removing your data (and configuration) folder, which is in one of the following paths, depending on your operating system:
So you just exit Sublime editor, delete the data folder (or back it up somewhere, for future needs) and then restart Sublime.
That will make Sublime work again - so then you can try redoing your steps and see what actually went wrong. At least it worked that way for me.
I was having the same issue with Sublime Text 3, but wasn't too keen on just ditching my config - I've installed a lot of plugins via package manager, who wants to do all that again?
I found that removing the files in .config/sublime-text-3/Local did the trick for me. I suggest exiting ST and running this command:
Restart ST and you'll hopefully be good to go!