#979752 nethack-qt: This process is currently running setuid or setgid. ... Refusing to initialize GTK+.

Package:
nethack-qt
Source:
nethack
Description:
dungeon crawl game - Qt interface
Submitter:
Paul Wise
Date:
2025-10-08 20:55:02 UTC
Severity:
normal
#979752#5
Date:
2021-01-11 05:16:45 UTC
From:
To:
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*

#979752#10
Date:
2025-10-08 20:46:34 UTC
From:
To:
Hey, is anyone gonna fix this?

Its still broken since 2021...


Lukas Friedrich