Type the following command in a terminal:
echo $XDG_SESSION_TYPE
If it returns Wayland, type:
xhost si:localuser:root
to allow root to start graphical apps under Wayland sessions.
Type the following command in a terminal:
echo $XDG_SESSION_TYPE
If it returns Wayland, type:
xhost si:localuser:root
to allow root to start graphical apps under Wayland sessions.