Sublime Forum

sublime_text --project XXX opens extra window

#1

If I start sublime with the following command:

  ~/bin/Sublime\ Text\ 2/sublime_text --project "${project_file}"

I expect it to open a window for the listed project. If sublime is already running, it opens the new window as expected.

However, if sublime is not already running, it always opens two windows. One for the requested project, and one for ‘Untitled’ or for some other recently opened project.

This seems like a bug to me.

If no project was listed on the command line, then restoring the most recent project seems correct, but an explicitly listed project should replace that default, not be opened in addition.

0 Likes

#2

Same behaviour on Win7 64bit when opening .sublime-project or .sublime-workspace files with ST3 build 3083. Seems to be an old bug: https://forum.sublimetext.com/t/command-line-vs-untitled/2189/1

0 Likes