This question already has an answer here:

I recently installed Sublime Text 2 on my Ubuntu 12.04. The problem is that whenever I open it, by default it opens up to two files: sublime.desktop and defaults.list. Also, whatever preferences I try to set aren't saved and I always get the default configuration (with these two files opened) every time I start it up. This wasn't the case with Sublime Text 1. It used to save my preferences and open on my last opened files. Why is this happening? How can I make it save my preferences as Sublime Text 1 did?

marked as duplicate by Warren Hill, user117103, Florian Diesch, BuZZ-dEE, belacqua Mar 13 '14 at 23:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Try the answer given here – Sylvain Pineau Mar 12 '14 at 10:57
  • ^Awesome! It works. I mean not exactly that, but a minor tweak of the same. Thanks – Ranveer Mar 12 '14 at 11:04
  • You can answer your own question ;-) please post it – Sylvain Pineau Mar 12 '14 at 11:46

Since, when I first accessed Sublime Text, I accessed it as root, it's file permissions would need to be changed. It worked by the following command:

sudo chown -R username /home/username/.config/sublime-text-2/

in my case, it'll be:

sudo chown -R ranveer /home/ranveer/.config/sublime-text-2/

Thanks to the comments by @SylvainPineau

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