Waylandで他のユーザーとしてGUIアプリケーションを実行する方法

Waylandで他のユーザーとしてGUIアプリケーションを実行する方法

Xorgを使えばできます

xhost +si:localuser:foxy

FoxyユーザーとしてGUIアプリケーションを実行します。

しかし、Waylandでこれを行うことはできますか?私は以下を試しました:-

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

しかし、まだ権限が拒否されました。

[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)

kwin_wayland 5.20.2を使用しています。

編集:rootを使用したくない

ベストアンサー1

ユーザー sudo su ユーザー名または sudo su - ユーザー名に切り替え、アプリケーション名を入力します。これが簡単な方法です。

おすすめ記事