Quote:
Originally Posted by SciYro
We are all confused, as you havent asked any questions, nore provided any real information. There could be a number of issues, so Ill just list a checklist.
* Does your program work under normal X? (run the program in a xterm or such under a user thats running and using X)
* Can other X programs run under your test conditions? (see if its only your program that has a problem)
* Are you using passing a custom string to XOpenDisplay or are using the normal NULL?
* Try other DISPLAYs, such as ':0' or ':0.0'
|
Thanks. I'am sorry for my confused question.
>>* Does your program work under normal X? (run the program in a xterm or such under a user thats running and using X)
Yes. All is OK under the GUI desktop enviroment. There is the connection problem under the normal character terminal.
>>* Can other X programs run under your test conditions? (see if its only your program that has a problem)
No. I wrote the program just to test if it's OK to connect to the X server so it's very simple, which just call XOpenDisplay and XCloseDisplay.
>>* Are you using passing a custom string to XOpenDisplay or are using the normal NULL?
>>* Try other DISPLAYs, such as ':0' or ':0.0'
I have tried :0.0, :0, but return error:
No protocol specified
I have tried NULL, localhost/unix:0, localhost:0, localhost/unix:0.0, localhost:0.0, but get NULL Display pointer.