New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test fix for iTerm quiet opening config #64
Conversation
Thank you for submitting the fix! Question: which method are you using to start with no windows? Perhaps we can do something automatically (reading preferences) to auto-determine when that’s enabled and act accordingly (i.e. without the user having to change a specific setting in the script’s config). |
Thanks. I can't remember if or where in the GUI this is configured, but I looked at the prefs plist and it appears to be one or all of
|
I pushed another small change that adds a timeout so at least the script doesn't loop forever. |
Not sure if parsing the prefs plist every time is worth the extra overhead of just documenting & setting the property. I seem to be one of the only people affected by this anyway, hate to slow down everyone else's workflows just to implement that. @vitorgalvao |
I experimented and found that these are the relevant pref keys: to turn ON "quiet" open mode (no windows open when launched from Dock): defaults write com.googlecode.iterm2 OpenNewWindowAtStartup -bool FALSE
defaults write com.googlecode.iterm2 OpenNoWindowsAtStartup -bool TRUE to turn OFF quiet mode: defaults write com.googlecode.iterm2 OpenNewWindowAtStartup -bool TRUE
defaults write com.googlecode.iterm2 OpenNoWindowsAtStartup -bool FALSE |
Nevermind, I see what you did there. Thanks 👍 |
Agreed. If there were a simple way to read the preferences from AppleScript (like the
Yep, the comment is so someone arriving later knows that was tried. If it worked, it would have been the cleanest way. Looks like this is good to go! I’ll merge and make a new release. Thank you again. Have a nice weekend! |
see https://www.alfredforum.com/topic/18924-custom-terminal-script-causing-alfred-5-to-hang