slackbuilds_ponce/network/gui-ufw/gufw-open.diff

11 lines
249 B
Diff
Raw Normal View History

--- 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