Hyprland/src
Thomas Voss 1e5cab1ee7
Set child stdout and stderr to /dev/null (#1000)
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.
2022-11-13 11:58:20 +00:00
..
config fix warning 2022-11-10 17:07:26 +00:00
debug fix trailing comma in hyprctl activewindow 2022-11-13 11:12:11 +00:00
events add move cursor windowrule 2022-11-10 16:59:08 +00:00
helpers guard empty str in removeBeginEndSpacesTabs 2022-11-10 21:51:46 +00:00
hyprerror fix up formatting 2022-11-07 20:31:56 +00:00
init disallow running with sudo 2022-05-19 19:28:15 +02:00
layout fix invalid master slave pos calc on y != 0 2022-11-10 19:39:16 +00:00
managers Set child stdout and stderr to /dev/null (#1000) 2022-11-13 11:58:20 +00:00
render fix shadow extent & offset calculations 2022-11-09 22:39:19 +00:00
wlrunstable update wlroots dep 2022-08-20 20:06:24 +02:00
Compositor.cpp added monitor cycling 2022-11-10 12:22:19 +00:00
Compositor.hpp Added creating / destroying outputs on a multi-backend + headless backend 2022-11-05 18:04:44 +00:00
defines.hpp include utility in defines 2022-11-03 19:55:20 +00:00
includes.hpp Added creating / destroying outputs on a multi-backend + headless backend 2022-11-05 18:04:44 +00:00
main.cpp Remove trailing whitespace. 2022-09-25 20:07:48 +02:00
meson.build meson: explicitly specify path for find(1) (#971) 2022-11-07 20:27:06 +00:00
Window.cpp Added resize transitions 2022-11-06 17:52:09 +00:00
Window.hpp Multiple animation optimization and xwayland wine fixes 2022-11-04 15:56:31 +00:00