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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Axolotl not working? ragreenburg 11 215 08-31-2021, 09:34 AM
Last Post: Anna
  mobile data on mobian not working synaption 10 827 08-29-2021, 07:22 AM
Last Post: bcnaz
  Keyboard stopped working on disk encryption screen on Mobian after update cowsay 2 327 08-16-2021, 08:31 AM
Last Post: Zebulon Walton
  SSH not working ragreenburg 6 487 08-06-2021, 12:09 PM
Last Post: Zebulon Walton
  firefox-esr stopped working after June 18 update HLing 17 2,027 07-21-2021, 02:40 PM
Last Post: dante404
  display will not wake up motox6 0 297 06-18-2021, 12:43 AM
Last Post: motox6
  Unable to play videos ("bitstream error") pietenpol 1 419 06-14-2021, 07:58 AM
Last Post: Gribouille
  Does anyone wish there was a 150% display option? lovepine88 2 568 06-12-2021, 12:47 PM
Last Post: lovepine88
  can't get file transfer working. Help, please! quixote 25 2,950 05-28-2021, 06:53 PM
Last Post: Rainer
  vivaldi only uses half the screen for website display motox6 0 380 05-22-2021, 03:49 PM
Last Post: motox6

Forum Jump:


Users browsing this thread: 1 Guest(s)