summarylogtreecommitdiffstats
path: root/wayland.patch
blob: a62dc78b02e2091d27abf64dacd1ce30eaf1a224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- 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
diff -Naur system76-driver-18.10.2/system76-firmware-pkexec system76-driver-18.10.2.patched/system76-firmware-pkexec
--- a/system76-firmware-pkexec	2018-10-18 14:55:38.000000000 -0400
+++ b/system76-firmware-pkexec	2018-11-05 21:00:02.253796899 -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-firmware" --reinstall
+
+if [ "$XDG_SESSION_TYPE" == "wayland" ] && command -v xhost; then
+  xhost -si:localuser:root
+fi