diff options
author | Corey Hinshaw | 2018-11-05 21:12:28 -0500 |
---|---|---|
committer | Corey Hinshaw | 2018-11-05 21:12:28 -0500 |
commit | 934e90e9217f639794b240b6c40ceecabf5081b2 (patch) | |
tree | 377a521ce506133cacc6205e2305c729ec0151bd /wayland.patch | |
parent | 4948b2d8c5283fe03094e9784e05ec311b42ba2f (diff) | |
download | aur-934e90e9217f639794b240b6c40ceecabf5081b2.tar.gz |
Add patch to GUI launchers for Wayland support
Diffstat (limited to 'wayland.patch')
-rw-r--r-- | wayland.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/wayland.patch b/wayland.patch new file mode 100644 index 000000000000..4ff1cb6a0f37 --- /dev/null +++ b/wayland.patch @@ -0,0 +1,28 @@ +diff -Naur system76-driver-18.10.2/system76-driver-pkexec system76-driver-18.10.2.patched/system76-driver-pkexec +--- 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 |