[Python-apps-team] Bug#864603: gufw requires the xhost utility under wayland

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Feb 23 12:02:27 GMT 2021


The "crash" of gufw can easily be explained and fixed. However, I am not
sure we actually want this.

This is verified in bullseye: gufw 20.04.1-1

/usr/bin/gufw tests if we are under wayland and calls xhost:

if [ $(loginctl show-session $(loginctl|grep $(whoami) |awk '{print
$1}') -p Type) = "Type=wayland" ]; then
    xhost +si:localuser:root
fi


which is in package "x11-xserver-utils" but which is not recorded by any
Debian package dependency.

So under wayland, "x11-xserver-utils" needs to become a dependency of
package gufw, or we crash as root cannot display stuff on the screen.

The question is whether we actually want such a far-reaching xhost
command sneaked in.



More information about the Python-apps-team mailing list