Error messages starting Wireshark on laptop.

I am trying to use Wireshark for the first time on my laptop and have received this error message:-

alastair@localhost:~> sudo wireshark 
[sudo] password for root:  
19:00:38.185     Main Info Could not load the Qt platform plugin "xcb" in "" even though it was found. 
error: XDG_RUNTIME_DIR not set in the environment. 
19:00:38.187     Main Crit Failed to create wl_display (No such file or directory) 
19:00:38.187     Main Info Could not load the Qt platform plugin "wayland" in "" even though it was found. 
19:00:38.187     Main Crit This application failed to start because no Qt platform plugin could be initialized. Reins
talling the application may fix this problem. 

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xc
omposite-egl, wayland-xcomposite-glx, xcb. 

alastair@localhost:~> 


Grateful for some help or guidance here please. Looks like I have a configuration issue but beyond me.

Budge

I think it must be started from the DM. Here (LEAP 15.2) with KDE alt+F2 =>

kdesu wireshark

. Works from the CLI, too.

Hi and many thanks. You are right and it worked as required so many thanks again.

I confess I have never used the command

kdesu

before and neither have I used DM before, other than logging. Will now try and find out more but meanwhile wireshark ran as I hoped.
Regards,
Budge

For using kdesu and friends: https://en.opensuse.org/SDB%3ALogin_as_root

And I think the mentioning of DM (Display Manager) is a slight mistake. He probably means DE (Desktop Environment, KDE in your case).

And I think the mentioning of DM (Display Manager) is a slight mistake. He probably means DE (Desktop Environment, KDE in your case).

That’s totally true. :shame: