summaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Luke Drummond <ldrumm@rtps.co>2020-06-11 01:29:07 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-12 14:45:40 +0200
commitc22caa54a8b40e152b141c18d32f3bad383d9d1c (patch)
tree3cfe6163f09beb36adbf6c84e371c43ecec6a577 /sway/tree/view.c
parentLog Sway version on startup (diff)
downloadsway-c22caa54a8b40e152b141c18d32f3bad383d9d1c.tar.gz
sway-c22caa54a8b40e152b141c18d32f3bad383d9d1c.tar.zst
sway-c22caa54a8b40e152b141c18d32f3bad383d9d1c.zip
swaybar: ensure correct init order for status_line
`$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.
Diffstat (limited to 'sway/tree/view.c')
0 files changed, 0 insertions, 0 deletions