projects
/
bubblebox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
X11, Wayland: only give access to the current display, not all of them
[bubblebox.git]
/
profiles.py
diff --git
a/profiles.py
b/profiles.py
index 69445f444f91110597c9614724ed8c9fb589bcc3..18c3116517f828a71b8e2d8ecf0d477bcb775d9b 100644
(file)
--- a/
profiles.py
+++ b/
profiles.py
@@
-42,10
+42,12
@@
def DESKTOP(name):
"dev": {
("dri", "snd"): Access.Device,
},
"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: {
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
},
}),
# Access to some key user configuration