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?

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
Name[en_US]=Sublime Text 2

[NewWindow Shortcut Group]
Name=Open a New Window
Exec=/usr/bin/sublime-text-2 --new-window
  • Do you see an entry for Sublime in /usr/share/applications? – Sly Oct 1 '12 at 7:18
  • How did you install it? Check whether it actually resides on the disk – Anwar Oct 1 '12 at 7:19
  • @Sly I have /usr/share/applications/sublime-text-2.desktop – dibs Oct 1 '12 at 7:32
  • 1
    Update your question with the output from cat /usr/share/applications/sublime-text-2.desktop. – Sly Oct 1 '12 at 7:33
  • @Anwar I have a folder full of sublime @ /usr/bin/sublime-text-2 – dibs Oct 1 '12 at 7:34

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:

  • OS X: ~/Library/Application Support/Sublime Text 2
  • Windows: %APPDATA%\Sublime Text 2
  • Linux: ~/.config/sublime-text-2

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.

| improve this answer | |
  • 1
    Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Oyibo Nov 21 '12 at 7:49
  • 1
    Tnx Oyibo for bringing that to my attention. I modified my answer so it's a bit more informative. – userfuser Nov 25 '12 at 11:35
  • You're welcome, just wanted to make sure your help stays relevant if ever the link changes as your answer is exactly whats needed by the original poster ;) – Oyibo Nov 25 '12 at 12:01

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:

rm ~/.config/sublime-text-3/Local/*

Restart ST and you'll hopefully be good to go!

| improve this answer | |
  • Had the same, but my problem seemed to be in the Cache-directory in stead of the Local (which apparantly contains my unsaved files, and I wouldn't like to loose those). – Johan Aug 14 '15 at 10:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.