Interesting this was marked as "opinion" almost 2 years ago and is still an issue today. Makes this app completely fail to open in Wayland without the hack listed in these comments.
I used this "solution" and added the removal of root access after the call to gufw-pkexec in /bin/gufw:
#!/bin/sh
c_user=$(whoami)
if [ $XDG_SESSION_TYPE = "wayland" ]; then
xhost +si:localuser:root
fi
pkexec gufw-pkexec $c_user
if [ $XDG_SESSION_TYPE = "wayland" ]; then
xhost -si:localuser:root
fi
Interesting this was marked as "opinion" almost 2 years ago and is still an issue today. Makes this app completely fail to open in Wayland without the hack listed in these comments.
I used this "solution" and added the removal of root access after the call to gufw-pkexec in /bin/gufw:
#!/bin/sh
c_user=$(whoami)
if [ $XDG_SESSION_TYPE = "wayland" ]; then
xhost +si:localuser:root
fi
pkexec gufw-pkexec $c_user
if [ $XDG_SESSION_TYPE = "wayland" ]; then
xhost -si:localuser:root
fi