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
  Mobile internet via cellular network mostly not working Anna 18 9,725 01-19-2024, 02:59 AM
Last Post: anonymous
Exclamation The internal speaker stops working anonymous 6 814 01-17-2024, 05:53 PM
Last Post: anonymous
  Unable to wake up from suspend xavi92 5 970 10-26-2023, 03:02 PM
Last Post: xavi92
  Unable to do initial setup of Weather due to keyboard LibrePhoneUser 2 1,022 07-07-2023, 03:29 AM
Last Post: jojuma
  APN settings not working with new operator SIM card user641 1 963 03-01-2023, 04:43 PM
Last Post: anonymous
  Mobian + phosh firefox ublock and other overlays display bugs tuxcall 3 1,679 02-24-2023, 12:11 AM
Last Post: nexion
  Possible Solution for Microphone Not Working Ferriah 0 905 02-13-2023, 01:09 PM
Last Post: Ferriah
  Mobian external display woes Hiraghm 5 2,360 12-09-2022, 12:12 PM
Last Post: gregb49
  Squeekboard stopped working Zebulon Walton 2 1,102 11-24-2022, 08:41 PM
Last Post: Zebulon Walton
  suspend inhibit no longer working jsch 3 1,887 10-23-2022, 09:20 AM
Last Post: LibrePhoneUser

Forum Jump:


Users browsing this thread: 1 Guest(s)