-
-
Notifications
You must be signed in to change notification settings - Fork 839
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
Have wezterm -e
start with --always-new-process
#4523
Comments
I agree, I think |
I agree.
Yeah, and if that means that |
I think this request makes sense, but I'm not sure whether the |
There is no way to implement it while keeping it as a simple clap alias, because clap uses a bijective mapping model, so there is no way to have different behaviour between different aliases: All aliases are the same element to clap and you can't determine which alias was used. However that's no problem, it is easy to fake this with only a few lines of code. |
This is done for compatibility, as many tools assume that running a command with "$TERMINAL -e $COMMAND" blocks until the command is finished. For example some tools delete a needed file after the command returns. But since we always return immediately (in case --always-new-process is not provided and if another wezterm instance is already running), this would mean that the file is deleted before the command could do anything. Fixes wez#4523
This is done for compatibility, as many tools assume that running a command with "$TERMINAL -e $COMMAND" blocks until the command is finished. For example some tools delete a needed file after the command returns. But since we always return immediately (in case --always-new-process is not provided and if another wezterm instance is already running), this would mean that the file is deleted before the command could do anything. Fixes wez#4523
This is done for compatibility, as many tools assume that running a command with "$TERMINAL -e $COMMAND" blocks until the command is finished. For example some tools delete a needed file after the command returns. But since we always return immediately (in case --always-new-process is not provided and if another wezterm instance is already running), this would mean that the file is deleted before the command could do anything. Fixes wez#4523
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This is a follow up of #2782.
Most terminals will not attach to a running instance of a daemon and therefore are blocking when invoked with
-e
. Some tools rely on waiting for the spawned program to terminate.In my case I had qutebrowsers external editor command set to
$TERMINAL -e vim {file}
. qutebrowser would createfile
and wait forvim
to finish before reading and deleting it. WithTERMINAL=wezterm
this didn't work as the file got deleted immediately.Describe the solution you'd like
wezterm -e
should behave as ifwezterm start --always-new-process
.Describe alternatives you've considered
I now handle
TERMINAL==wezterm
specially and start it as a new process, but I'd rather it just worked with-e
.The text was updated successfully, but these errors were encountered: