From: Jami Kettunen Date: Sun, 15 Jan 2023 04:17:23 +0000 (+0200) Subject: session: Add strict WAYLAND_DISPLAY validity checks X-Git-Tag: 1.4.0~44 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/2c223d412e8dfcb89efaf715f1e1f657a8c7e509?hp=2c223d412e8dfcb89efaf715f1e1f657a8c7e509 session: Add strict WAYLAND_DISPLAY validity checks Enough with not checking we actually have a Wayland compositor around at all: start requiring the WAYLAND_DISPLAY socket actually exists as an absolute path or relatively under XDG_RUNTIME_DIR. Additionally if WAYLAND_DISPLAY isn't an absolute path to the socket (most setups) ensure XDG_RUNTIME_DIR is set and error with a typically appropriate message. ---