summarylogtreecommitdiffstats
path: root/wayland.patch
blob: 7e8ba8fa72d5eac553c947bd2abc6b3fcc032da9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/system76-driver-pkexec	2018-10-18 14:55:38.000000000 -0400
+++ b/system76-driver-pkexec	2018-11-05 20:58:58.839653271 -0500
@@ -1,2 +1,10 @@
 #!/bin/sh
+if [ "$XDG_SESSION_TYPE" == "wayland" ] && command -v xhost; then
+  xhost +si:localuser:root
+fi
+
 pkexec "/usr/bin/system76-driver" --home "$HOME"
+
+if [ "$XDG_SESSION_TYPE" == "wayland" ] && command -v xhost; then
+  xhost -si:localuser:root
+fi