linSSID didn't start with the latest update 26.0.0 in desktop env

journalctl --follow


jan 11 16:41:50 pc-kamer linssid[41321]: qt.qpa.xcb: could not connect to display
jan 11 16:41:50 pc-kamer linssid[41321]: qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
jan 11 16:41:50 pc-kamer linssid[41321]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

What to do?

This is 1 of the PC’s with manjaro, on the other pc’s with manjaro the same problem.

linSSID doesn’t start, when i do this: sudo linssid in the terminal , linssid starts.

I use Plasma but see similar results.

In Plasma, the desktop menu runs linssid-pkexec instead of the plain command, in order to prompt for the authentication password. I see that running this linssid-pkexec from the command line also fails.

Some googling suggests changing the desktop menu to run pkexec with some command line arguments, something like this

env 'WAYLAND_DISPLAY=$WAYLAND_DISPLAY' 'XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR' QT_QPA_PLATFORM=wayland linssid

Searching for pkexec problems may suggest better solutions for you. You could for instance alter the /usr/sbin/linssid-pkexec shell script.

1 Like

File: /usr/bin/linssid-pkexec

#!/bin/sh
pkexec env QT_QPA_PLATFORM="xcb" "/usr/sbin/linssid" "$@"

Now it should work. The problem here is that pkexec doesn’t read environment variables. See for example: pkexec env what variables are available.

Alternatives: wavemon or sparrow-wifi or just nmcli dev wifi list on the terminal.

1 Like

Still does not work on XFCE X11, but maybe the solution for wayland (probably with egl-wayland instead of xcb).
In various forums there is a solution to use xhost +si:localuser:root (which is also the solution for sparrow) but it did not work too.
The project seems abandoned, with last changes from 2018, so i guess it is time for alternatives.

Thanks for the feedback… Unfortunately, I can’t test it myself because I don’t have a Wi-Fi device at hand.

We would need to determine which variables are available in sudo that are not present in pkexec. Then we could make the necessary adjustments. @Phemisters already has a good approach for Wayland, but @klaas uses X11.

1 Like

sparrow-wifi is a good approach, thanks, but graffical i liked linSSID