Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2 always opens empty window

Tags:

sublimetext2

I am opening a Sublime Text 2 project with the following command using gksudo in order to be able to edit some system files:

gksudo /usr/bin/subl /home/orschiro/.sublime/system-administration.sublime-project

However, what Sublime does is it opens the project in a window but additionally shows another empty window:

enter image description here

I already tried adding the following to the project and user settings but it does not resolve the problem:

"open_files_in_new_window": false,
"hot_exit": false

Does anyone have an idea how I can stop Sublime from opening that additional empty window?

like image 335
orschiro Avatar asked Oct 30 '25 01:10

orschiro


1 Answers

You can try "create_window_at_startup": false, but that might only apply to OSX. Another option is to try "close_windows_when_empty": true.

Is your /usr/bin/subl a link to /path/to/Sublime Text 2/sublime_text, or do you have a -w specified as well? The -w option is not needed, so that's another thing to look at.

Good luck!

like image 115
MattDMo Avatar answered Nov 02 '25 02:11

MattDMo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!