Wireshark - unable to start in sudo

Install wireshark and added it to visudo.

But wireshark refused to start in konsole

# sudo wireshark

(wireshark:7493): Gtk-WARNING **: cannot open display: 

However, wireshark will start without problem when in root.

What about adding your user to the wireshark group ?

wireshar is graphical application so you need to use gnomesu instead of sudo.

Heremod,

went to yast but doesn’t seem to have a wireshark group.

mjakl ,

Using kdesu wireshark but still have the same problem.

In wireshark.desktop is this:
/usr/bin/xdg-su -c /usr/bin/wireshark

If you want to run graphical applications in sudo here is a good guide:

/dev/loki: sudo X applications on openSUSE

Thanks to all for the advise.

I don’t quite understand why, but
after removing wireshark from visudo and
boot up the next day - miraculously kdesu wireshark works.