Comment 6 for bug 1652857

Revision history for this message
matthew p (pizfunk) wrote :

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