server: Allow absolute paths in WAYLAND_DISPLAY
authorLoïc Yhuel <loic.yhuel@softathome.com>
Thu, 14 Nov 2019 13:13:17 +0000 (14:13 +0100)
committerLoïc Yhuel <loic.yhuel@softathome.com>
Wed, 13 Jan 2021 16:01:15 +0000 (17:01 +0100)
commitd32e77692ce7faada2a44c9a8ee2e2fc1bc7461d
tree77785c41bf6adf30b74e51136178da2e4641819d
parent69b8eaf3852839079e18a57c3b86fa71ddf72354
server: Allow absolute paths in WAYLAND_DISPLAY

The compositor should handle absolute paths in WAYLAND_DISPLAY like the clients, ie not
adding the XDG_RUNTIME_DIR prefix if it's an absolute path.

This allows to create the wayland socket in a separate directory for system compositors if
desired. Clients could then directly inherit the environment variable.

Signed-off-by: Loïc Yhuel <loic.yhuel@softathome.com>
src/wayland-server.c