Programs unable to open display via sudo or pkexec (linssid not working)
#1
Linssid would be a useful tool for wireless network survey (at least 2.4 GHz) but although it installs it aborts on an error when run, apparently a problem with connecting to the display. This then precipitates additional errors, however the inability to connect to the display seems to be the actual issue. (Linssid uses pkexec to run with root privileges.) This appears to be a generic problem running any program as root via pkexec or sudo , for example a similar error occurs running "pkexec nemo" or "sudo nemo". I'm really not very familiar with Wayland, is there a way around this?

Code:
Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

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

Aborted
  Reply
#2
Zeb, I ran into this last night with gedit. It seems to be a deliberate policy of Wayland. I found these two links:
https://beamtic.com/sudo-and-guis
https://www.reddit.com/r/Fedora/comments...h_sudo_in/

Instead of sudo gedit, I'm using sudoedit as a workaround to edit my sources.list file.
Pinephone beta edition, convergence model, Mobian Bookworm with Phosh.
  Reply
#3
Zeb, I found that sudo -EH gedit lets me open gedit as root. It is likely to work for most everything, I think.

Found it here: https://unix.stackexchange.com/questions...hical-sudo
Pinephone beta edition, convergence model, Mobian Bookworm with Phosh.
  Reply
#4
(07-24-2021, 08:23 AM)nelstomlinson Wrote: Zeb, I found that sudo -EH gedit lets me open gedit as root. It is likely to work for most everything, I think.

Found it here: https://unix.stackexchange.com/questions...hical-sudo

Interesting. It works with gedit, but unfortunately does not work for linssid - the latter is invoked with the executable "linssid-pkexec" so it seems that program invokes pkexec internally, which clobbers the environment variables saved by sudo -EH. There is no option I can find to change that behavior.
  Reply
#5
Bleachbit as root has same problem. https://forum.pine64.org/showthread.php?tid=14733 Who has fix?
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  MMS via Verizon quit working treebeard 3 98 05-21-2022, 12:22 PM
Last Post: cjhead
  Cellular data is working! drh 0 79 05-15-2022, 09:02 AM
Last Post: drh
  Telephony stopped working biketool 5 692 03-06-2022, 03:30 AM
Last Post: biketool
  Mobile internet via cellular network mostly not working Anna 17 1,935 02-28-2022, 02:51 PM
Last Post: TRS-80
  PIN not working (new?) anotherdavidlevin 0 214 01-31-2022, 12:41 PM
Last Post: anotherdavidlevin
  Phone mic isn't working at all D347h 2 470 01-26-2022, 07:34 AM
Last Post: D347h
  Screen/display gets switched on by itself / Phone wakes up from suspend Anna 5 1,046 01-04-2022, 01:24 PM
Last Post: pothos
  can't get file transfer working. Help, please! quixote 26 8,063 11-14-2021, 10:50 PM
Last Post: quixote
  Help! Audio stopped working Barugon 4 1,129 11-03-2021, 10:58 AM
Last Post: Barugon
  Axolotl not working? ragreenburg 11 1,871 08-31-2021, 09:34 AM
Last Post: Anna

Forum Jump:


Users browsing this thread: 1 Guest(s)