Search code examples
sublimetext2

When opening a directory through command line, Sublime text opens two windows instead of one


If I open a directory in Sublime using the command line (subl path/to/my/folder/), Sublime will open two instances: one with the directory I asked for, and another one with the directory I opened last time I used Sublime. Any idea why ?

I don't know if it's revelant, but the problem occurs with Ubuntu 12.04.


Solution

  • You are most likely using Sublime's save last session feature.

    You can disable it:

    http://opensourcehacker.com/2012/05/11/sublime-text-2-tips-for-python-and-web-developers/#Disable_automatic_loading_of_the_last_session