Under GNOME Wayland, nethack-qt seems to load something from GTK, which
does not like to be run setuid/setgid.
$ nethack-qt
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
(process:793182): Gtk-WARNING **: 12:58:50.267: This process is currently running setuid or setgid.
This is not a supported use of GTK+. You must create a helper
program instead. For further details, see:
http://www.gtk.org/setuid.html
Refusing to initialize GTK+.
$ sh -x /usr/games/nethack-qt
+ set -e
+ HACKSTYLE=qt
+ [ -z ]
+ [ -e /home/pabs/.nethackrc.qt ]
+ NETHACKOPTIONS=/home/pabs/.nethackrc.qt
+ export NETHACKOPTIONS
+ HACKDIR=/usr/lib/games/nethack
+ export HACKDIR
+ HACK=/usr/lib/games/nethack/nethack-qt
+ cd /usr/lib/games/nethack
+ export OVERRIDEWIN=qt
+ exec /usr/lib/games/nethack/nethack-qt
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
(process:793211): Gtk-WARNING **: 12:58:54.743: This process is currently running setuid or setgid.
This is not a supported use of GTK+. You must create a helper
program instead. For further details, see:
http://www.gtk.org/setuid.html
Refusing to initialize GTK+.
$ lddtree /usr/lib/games/nethack/nethack-qt | grep -i gtk
$ ls -l /usr/lib/games/nethack/nethack-qt
-rwxr-sr-x 1 root games 3.0M Jan 9 23:34 /usr/lib/games/nethack/nethack-qt*