Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]sdl fails with 'connection to ":0.0" refused'
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dgulotta
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2006
Posts: 88

PostPosted: Wed Dec 03, 2008 1:51 am    Post subject: [SOLVED]sdl fails with 'connection to ":0.0" refus Reply with quote

When I try to run SDL programs, I get the following error about 80% of the time:

Xlib: connection to ":0.0" refused by server
Xlib: XDM authorization key matches an existing client!
Could not initialize SDL: Couldn't open X11 display!

The other 20% of the time, the program starts just fine. As far as I can tell it's completely random.

Any ideas on how to fix this?


Last edited by dgulotta on Thu Dec 18, 2008 11:00 am; edited 3 times in total
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Sat Dec 06, 2008 6:28 am    Post subject: Reply with quote

Switch from xdm-specific to normal authorization method for your X clients by specifying auth method in /etc/X11/xdm/xdm-config:
Code:

DisplayManager*authName:        MIT-MAGIC-COOKIE-1


Here is the best explanation I've seen on why certain programs have this problem with xdm cookies:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440874
Back to top
View user's profile Send private message
dgulotta
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2006
Posts: 88

PostPosted: Sun Dec 07, 2008 8:44 am    Post subject: Reply with quote

Thanks, that fixed it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum