Allowing root to use X
Does anyone know how to allow 'root' to use the X server when a common user is logged in? Whenever I try to run an X program as root, I get a message like this:
linux:/home/indigojo # yast2 & [1] 2085 linux:/home/indigojo # Xlib: connection to ":0.0" refused by server Xlib: No protocol specified y2controlcenter: cannot connect to X server :0.0 How do I sort this out? I would have thought that root would have access to the X server anyway?! |
BTW I'm using SuSE v9 professional
|
i'm no guru... but the short of the answer is that only one user has access to an x session at a time.
i get around it by issuing Code:
xhost +localhost |
Thanks ... I had heard of xhost +localhost but I didn't realise you had to type it *before* going into root mode. I thought root had general access as with the file system.
|
All times are GMT -5. The time now is 10:55 PM. |