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

Re: xhost+ and Konsole



Am Freitag, 14. Januar 2005 12:46 schrieb Charles de Miramon:
> I'm running an uptodate KDE in Sid and I've noticed a small regression /
> bug in Konsole that have appeared lately.
>
> When I open a Konsole and type xhost+ and then open a second root tab in
> Konsole. I'm unable to start from this Konsole X applications as root.
> However, when I type in a Konsole xhost+ and then type su to become root. I
> can launch X applications from this Konsole.

You shouldn't use xhost this way. Use this instead:
export XAUTHORITY=$HOME/.Xauthority

Now you can use su (not "su -"!) to start X programs just fine (this works 
only for root). If you need root's environment setup, maybe use "ssh -X 
root@localhost" or set the XAUTHORITY as root, there.


HS



Reply to: