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:

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?
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With