blob: e972d8b9218b8a457548960a8f7b85a1a32d6f80 (
plain)
1
2
3
4
5
6
7
8
9
10
|
--- a/bin/gufw
+++ b/bin/gufw
@@ -1,3 +1,6 @@
#!/bin/bash
+if [ $(loginctl show-session $(loginctl|grep $(whoami) |awk '{print $1}') -p Type) = "Type=wayland" ]; then
+ xhost +si:localuser:root
+fi
c_user=$(whoami)
pkexec gufw-pkexec $c_user
|