X-Git-Url: https://git.ralfj.de/bubblebox.git/blobdiff_plain/3a59fb5ed4a5ad3bc9bdadae9616c62f7de38fff..249a3635c23a8a543459fd084faf7ddb4241b06d:/profiles.py?ds=inline 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