SUDO WaylandでQT GUIアプリケーションを実行する

SUDO WaylandでQT GUIアプリケーションを実行する

Void Linuxでwayland(riverwm)を実行しており、rpi-imagerを使用しようとしています。

rpi-imagerにはsudo権限が必要なため、デバイスに書き込むことはできません。

その後、sudoを使用してrpi-imagerを実行しようとしましたが、次のようになりました。

qt.qpa.xcb: could not connect to display 
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, xcb.

Arch Linux wikiによると、私も次のことを試しました。

sudo -EH rpi-imager

しかし、これは何も解決せず、同じエラーが発生します。

root権限でアプリケーションをどのように実行できますか?

ベストアンサー1

おすすめ記事