4

With Xorg, I could just do

xhost +si:localuser:foxy

to run GUI app as foxy user.

But can I do this on Wayland ? I tried following:-

chmod o+rw /run/user/1000/wayland-0

but It still gives Permission denied

[foxy@titan levi]$ QT_QPA_PLATFORM=wayland XDG_RUNTIME_DIR=/run/user/1000  konsole
Failed to create wl_display (Permission denied)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" 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: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

I'm using kwin_wayland 5.20.2

EDIT: I dont want to use root

voldimot
  • 135

1 Answers1

1

Switch to user sudo su username or sudo su - username and then type the name of the app. This is the trivial way.

Sysadmin
  • 284