#942752 zenmap fails to run when started with root privileges - gtk.GtkWarning: could not open display

#942752#5
Date:
2019-10-20 22:10:08 UTC
From:
To:
Attempts to start zenmap as root using Gnome+wayland, zenmap fails to run with no error messages in GUI.

When zenmap start with sudo privileges, it fails with an error message:
sudo zenmap
No protocol specified
No protocol specified
Traceback (most recent call last):
  File "/usr/bin/zenmap", line 181, in <module>
    import zenmapGUI.App
  File "/usr/lib/python2.7/dist-packages/zenmapGUI/App.py", line 157, in <module>
    import gtk
  File "/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py", line 69, in <module>
    _init()
  File "/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py", line 57, in _init
    warnings.warn(str(e), _gtk.Warning)
gtk.GtkWarning: could not open display

End of line.