]> glassweightruler.freedombox.rocks Git - waydroid.git/commit
session: Add strict WAYLAND_DISPLAY validity checks
authorJami Kettunen <jami.kettunen@protonmail.com>
Sun, 15 Jan 2023 04:17:23 +0000 (06:17 +0200)
committerAlessandro Astone <ales.astone@gmail.com>
Sun, 15 Jan 2023 15:59:49 +0000 (16:59 +0100)
commit2c223d412e8dfcb89efaf715f1e1f657a8c7e509
treec31fe32fcd947271b65b2dc1abca1ec7187be358
parenteabe5d6c3b31360a33621284f2dcc98e9d03b81d
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.
tools/actions/session_manager.py