From: Ralf Jung Date: Mon, 15 Apr 2024 14:09:16 +0000 (+0200) Subject: X11, Wayland: only give access to the current display, not all of them X-Git-Url: https://git.ralfj.de/bubblebox.git/commitdiff_plain/249a3635c23a8a543459fd084faf7ddb4241b06d X11, Wayland: only give access to the current display, not all of them --- diff --git a/profiles.py b/profiles.py index 69445f4..18c3116 100644 --- a/profiles.py +++ b/profiles.py @@ -42,10 +42,12 @@ def DESKTOP(name): "dev": { ("dri", "snd"): Access.Device, }, - "/tmp/.X11-unix/": Access.Read, + "/tmp/.X11-unix/": { + "X"+os.environ["DISPLAY"].removeprefix(":"): Access.Read, + }, os.environ["XAUTHORITY"]: Access.Read, XDG_RUNTIME_DIR: { - ("wayland*", "pulse"): Access.Read, + (os.environ["WAYLAND_DISPLAY"], "pulse"): Access.Read, }, }), # Access to some key user configuration