os: debian 12 kde plasma X11
Ik ben een gui wrapper aan het maken voor dd in python PyQt6.
Het programma start normaal op als ik het als normale gebruiker uitvoer. maar als ik het programma als root uitvoer dan stopt het op het moment dat de grafische omgeving wordt geladen.
Dit is de foutmelding in de terminal:
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: vnc, minimalegl, linuxfb, minimal, offscreen, wayland-egl, xcb, vkkhrdisplay, wayland, eglfs.
Het lijkt erop alsof de instellingen voor het rootaccount niet goed staan of dat het rootaccount beveiligd is voor grafische programma's.
Is hie een eenvoudige (oplossing) voor te vinden??