Re: K4dirstat als root, could not connect to display
Siegfrid Brandstätter <[email protected]>
| Newsgroups | gmane.linux.debian.user.german |
|---|---|
| Message-ID | <[email protected]> |
Am 18.09.25 um 16:11 schrieb Philipp Ludwig: > Guten Tag, > > On 18.09.25 4:07 PM, Siegfrid Brandstätter wrote: >> qt.qpa.xcb: could not connect to display > > das deutet meistens darauf hin, dass die DISPLAY Variable nicht gesetzt > ist (in der root session). > In der Regel hilft da DISPLAY=:0.0, also z.B. > > env DISPLAY=:0.0 k4dirstat Habe es in der Konsole als user versucht, damit öffnet sich das Programm genau so wie mit nur "k4dirstat". Oder die Verwendung von sudo. # sudo k4dirstat 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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. > > (PS: In 99% der Fällen ist ":0.0" der korrekte Wert für DISPLAY. > Wenn das aber nicht der Fall ist, findet man in einem Terminal als > normaler user das wie folgt heraus: echo $DISPLAY) > $ echo $DISPLAY :1 > (PPS: Das gilt jetzt nur für X11. Von Wayland habe ich keine Ahnung.) Schaut so aus als wenn Wayland am werkeln wäre, oder? -- Beste Grüße Sigi