slackbuilds_ponce/network/gui-ufw/gufw-open.diff
Jay Lanagan b0e010952a
network/gui-ufw: Updated for version 22.04.0
deserted script, new maintainer & update

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-10-11 22:27:01 +07:00

10 lines
249 B
Diff

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