diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2020-06-11 01:29:07 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2020-06-11 01:29:07 +0100 |
| commit | 20ed7fc4a211ce16b6cf69b2d4379bbdb75c562d (patch) | |
| tree | 3cfe6163f09beb36adbf6c84e371c43ecec6a577 /swaymsg | |
| parent | a2aec25af768c0c10689586f720d2f983ec409e1 (diff) | |
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 'swaymsg')
0 files changed, 0 insertions, 0 deletions
