How to stop iTerm2 from launching a new Window session if no active sessions were running
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.1.5
- OS version: Mac OS X 10.11.6
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window) com.googlecode.iterm2.plist
- Attach a debug log, if possible. N/A
- Are you reporting a performance issue or a hang? No
- Are you reporting a crash? Please attach the crash log. No
Detailed steps to reproduce the problem:
- Close any running iTerm2 process if any and launch the app (iTerm2 doesn't open any new Window sessions - which is fine)
- Next, click on any other app (iTerm2 is running in background with no active session - this is fine too)
- Now click the iTerm2 app (at this step, iTerm2 launches a new Window session using the default profile - is that normal?)
What happened: On step 3, iTerm2 would open a new Window session using default profile
What should have happened: If there are no active sessions running in the background, clicking iTerm2 app should not open a new session
Is there any way to suppress iTerm2 from launching/opening a new session? Please note if there are existing sessions already running, iTerm2 does not open a new session (which is good).