summarylogtreecommitdiffstats
path: root/wayland.patch
diff options
context:
space:
mode:
authorTony Lambiris2019-04-16 15:13:45 -0400
committerTony Lambiris2019-04-16 15:13:45 -0400
commit36e3d29df97639e17542942935aac4a09608e39d (patch)
treeeae0aa1e4e866e3bd364392d5ccfea55ebb42bd1 /wayland.patch
downloadaur-36e3d29df97639e17542942935aac4a09608e39d.tar.gz
Initial commit
Diffstat (limited to 'wayland.patch')
-rw-r--r--wayland.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/wayland.patch b/wayland.patch
new file mode 100644
index 000000000000..a62dc78b02e2
--- /dev/null
+++ b/wayland.patch
@@ -0,0 +1,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