Sublime Forum

--project command line argument opens multiple instances

#1

Running sublime with the --project option opens multiple instances…

sublime_text --project myproject.sublime-project
opens one window with the expected project, …but ALSO opens a second or even third window with previous folders and/or an empty untitled document

sublime_text .
opens one window with an empty untitled document, and the side bar is on the current directory (this is expected)
…but ALSO opens a second window with the previous project or folder

Does anyone else see this? I can’t be the only one to run sublime text with command line parameters?!?
(I use a batch file to launch ST with different projects)

This even occurs “out of the box” with a fresh install (ver.2.0/2210) - and did not happen in the 2181 build.
But I have also tried many combinations of “hot_exit” “remember_open_files” and other settings.

0 Likes

#2

I see the same behavior on a clean install. I never used --project on earlier installs.

0 Likes

#3

I just tried the --project option for the first time today (version 2.0.1, 2217) and also got 2 copies of ST2 opening up - one with the requested project, one with the project that had been open when I last closed ST2.

0 Likes