Что за ошибка «qt.qpa.screen: QXcbConnection: Could not connect to display :0», и как исправить?
$ sudo wireshark
[sudo] пароль для dvr:
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.
но если запускать без sudo, то wireshark запускается
$ sudo gksu wireshark
No protocol specified
(gksu:23603): Gtk-WARNING **: 18:50:43.303: cannot open display: :0
$ sudo -E wireshark
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.