Hi, "L.V.Gandhi" wrote:
I have the same script and wine.conf in RH6.1 and SuSE6.3. when i ran 'wine /winc/tclock2/tclock.exe ' in SuSE, it gave the following error. root@lvghomepc:~ > wine /winc/tclock2/tclock.exe Xlib: connection to ":0.0" refused by server Xlib: Client is not authorized to connect to Server wine: Can't open display: (none specified) But it works in RH6.1
Are you logged in as a normal user but are you starting wine from a terminal logged in as root? Then that's the problem. I'm not an expert but I think it's a security matter: by default X does not allow other users to connect to 'your' X session. Maybe SuSE's default security setup is more strict than RH's.
How to authorize somebody in SuSE to connect to server (i think it is Xserver)
(1) The normal user (i.e. the user who is using the graphical desktop, e.g. lvgandhi) must type 'xhost +' or 'xhost +localhost' (without the quotes). The latter is more restrictive. (2) The user running wine (eg. root) must type: 'export DISPLAY=:0.0'. Check if the latter worked by typing (as root): 'echo $DISPLAY'. If it says :0.0 then you're OK and you can start wine.
-- L.V.Gandhi MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA http://www.poboxes.com/lvgandhi lvgandhi@poboxes.com, lvgandhi@vsnl.com, 31882656@pager.mirabilis.com
Bye, Martijn -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/