mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 14:34:07 +01:00
c22caa54a8
`$WAYLAND_SOCKET` is unset by `wl_display_connect` after it has successfully connected to the wayland socket. However, subprocesses spawned by swaybar (status-command) don't have access to waybar's fds as $WAYLAND_SOCKET is O_CLOEXEC. This means any status command which itself tries to connect to wayland will fail if this environment variable is set. Reorder display and status-command initialization so that this variable is not set and add an assert so we can enforce this invariant in future. |
||
---|---|---|
.. | ||
tray | ||
bar.c | ||
config.c | ||
i3bar.c | ||
input.c | ||
ipc.c | ||
main.c | ||
meson.build | ||
render.c | ||
status_line.c | ||
swaybar-protocol.7.scd |