Re: K4dirstat als root, could not connect to display

Philipp Ludwig <[email protected]>
Newsgroups gmane.linux.debian.user.german
Message-ID <[email protected]>
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

Oder die Verwendung von sudo.

Beste Grüße


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

(PPS: Das gilt jetzt nur für X11. Von Wayland habe ich keine Ahnung.)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.