mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-21 09:49:48 +01:00
1e5cab1ee7
Some scripts or utilities check to see if stdout or stderr are connected to a TTY or not to determine certain behaviors (for example, you might want to prompt a user for input with fzf(1) if in a terminal but tofi(1) or wofi(1) when spawned from your WM). Since hyprland never closes these output streams for spawned processes, they end up just spewing their output onto the TTY while giving the user no real way to have a script detect if it's being run from the shell or WM. Instead of just closing stdout and stderr though, we close them and then proceed to reopen them but connect them to /dev/null. This allows scripts and processes to not fail when attempting to write, but for that writing to simply have no effect. |
||
---|---|---|
.. | ||
config | ||
debug | ||
events | ||
helpers | ||
hyprerror | ||
init | ||
layout | ||
managers | ||
render | ||
wlrunstable | ||
Compositor.cpp | ||
Compositor.hpp | ||
defines.hpp | ||
includes.hpp | ||
main.cpp | ||
meson.build | ||
Window.cpp | ||
Window.hpp |