Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
share|improve this question
    
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 Shah 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

2 Answers 2

up vote 2 down vote accepted

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.

share|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!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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