-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add option to synchronize single instance terminals #59
Comments
Why not just place this flag in |
For the purposes of this flag, we can roughly group terminals in 3 types:
|
I didn't get that part. Let's say I have a Kitty window open with some work I'm doing. Then I run a script that uses this flag and it causes Kitty window to create a new "tab" for the command from the script. Now the script won't continue until I close both "tabs"? I have to interrupt my work in the first "tab"? |
As time goes on, more and more terminal support for single instance mode.
With single instance, only one process of the terminal is ever up, if another terminal process is start, it exits immediately, and the old process spawns the new window.
This is usually desirable: it saves on load times and memory usage, but if the terminal is being started as part of a script, the script will misinterpret the process exiting immediately as the task being completed, thus the need for a way to force the terminal to not run in single instance mode, if needed.
X-TerminalArgSynchronous
should contained the argument to make the new process terminate only when the window is closed. This can be achieved by still opening the window in single instance mode, but keeping the process launched by the script alive until the window is closed (ex. Kitty's--wait-for-single-instance-window-close
) (preferred), or disable single instance mode for that window.If
X-TerminalArgSynchronous
is not set or set but empty, it is assumed that the terminal does not support single instance mode, or that it is disabled (a.k.a. the terminal is synchronous by default).The text was updated successfully, but these errors were encountered: