1WAYLAND-LOGOUT(1) BSD General Commands Manual WAYLAND-LOGOUT(1)
2
4 wayland-logout — generic logout utility for wayland compositors
5
7 wayland-logout is a compositor agnostic utility for simulating a logout
8 with any wayland compositor.
9
10 It sends a SIGTERM [22msignal(3) to the running compositor PID which is
11 obtained by looking at the environment variables.
12
14 wayland-logout uses the WAYLAND_DISPLAY and XDG_RUNTIME_DIR environment
15 variables to get the socket(2) corresponding to the compositor instance.
16
18 wayland-logout exits with non-zero if an error has occurred along with
19 the error reasoning and exits with 0 on success.
20
22 To kill the current compositor instance, run inside the compositor envi‐
23 ronment:
24 $ wayland-logout
25
26 A typical use case, to kill a specific compositor instance of another
27 user (with uid=1002), run as the other user (or as root):
28 $ env -i XDG_RUNTIME_DIR=/run/user/1002 WAYLAND_DISPLAY=wayland-4
29 wayland-logout
30 or
31 $ WAYLAND_DISPLAY=/run/user/1002/wayland-4 wayland-logout
32
33BSD November 27, 2020 BSD