-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
swaymsg exec nvim
corrupts Linux VT
#4214
Comments
You're right. It's probably because clients are inheriting our stdin/stdout which refer to |
On the other hand, it is perhaps nice that the stdout of apps like |
I kind of agree. Better not to discard logs.
No, this isn't our responsibility. |
What if stdout is left as-is, but stdin is closed/changed to |
This is probably acceptable. |
What about adding some options to |
exec is handled by just running the command through
With that, I think it makes even more sense to just give them |
No need for this IMO. I use a script to start graphical programs which basically does this:
stderr/stdout get redirected to the systemd journal and are tagged with the program name. |
If I run
in a terminal emulator inside sway, then exit sway, I get some really weird results. It is as if neovim has started up inside the linux terminal (e.g.: /dev/tty1) while sway is still running, and then when I exit sway I can simultaneously see neovim UI as well as my shell prompt, and I can't reliably exit either of them because they're somehow both in control of the tty.
Expected behaviour would be that neovim doesn't start, similar to when I run
nvim&
in a terminal. I would imagine this has something to do with neovim thinking it is running in 'interactive mode' inside /dev/tty1, when it really shouldn't be because /dev/tty1 is currently hidden and sway is running on top and capturing all user input.I should mention - I know I need to start an editor like neovim inside a terminal emulator e.g.:
swaymsg exec alacritty -e nvim
if I want to actually be able to use it. However it still feels like a bug that running the 'wrong sort of executable' withswaymsg exec
(i.e.: not a GUI app) produces such a corrupted state in my linux VT. The same thing happens with vi, and I assume vim (though I haven't tried vim because I don't have it installed)sway version
sway --version
giveshowever pacman reports
1.1.1-1
. I'm pretty sure I'm running the latest version since I needed to installswaybg
before my background showed again.The text was updated successfully, but these errors were encountered: