[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Midnight Commander bzw xlib



Am Mittwoch 17 Januar 2007 20:00 schrieb Evgeni Golov:
> Getestet? Nein ;-)

Doch.
Und das kommt dabei raus:

chrisf@skogtun:~$ su 
Password: 
skogtun:/home/chrisf# kate
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kate: cannot connect to X server :0.0
skogtun:/home/chrisf# exit
chrisf@skogtun:~$ su -
Password: 
skogtun:~# kate
kate: cannot connect to X server 
skogtun:~# logout

> "su -" erstellt eine loginshell, richtig, und überschreibt alle
> ENV-Variablen, nur "su" tut letzteres nicht, DISPLAY und XAUTHORITY
> bleiben gesetzt und root kann auf den Bildschirm malen.

Das setzt zumindest vorraus, das XAUTHORITY gesetzt ist, was bei mir 
nicht der Fall ist und für den user, dem die X-Session gehört, auch 
überflüssig ist.

Gruß Chris

-- 
A: because it distrupts the normal process of thought
Q: why is top posting frowned upon



Reply to: