PDA

View Full Version : X-server. How can I know - X-server is running or not?



kwisp
31st May 2009, 11:52
How can I know - X-server is running or not?

The fact is that I run the application (created with QApplication) and don`t know X-server is running or not. And my application say that "cannot connect to X-server" and crash!

What can I do to work normaly without crash?

kwisp
1st June 2009, 21:13
anybody help me please.... :confused:

lni
2nd June 2009, 04:03
You are sitting in front of your own computer, and if you don't even know if you have X running, sorry, no one else would...

kwisp
2nd June 2009, 06:44
You are sitting in front of your own computer, and if you don't even know if you have X running, sorry, no one else would...

thank you very much, lni.
But apllication started at remote host with system. User which must use my application dont know about unix and operation system anything good.

lni
2nd June 2009, 15:17
thank you very much, lni.
But apllication started at remote host with system. User which must use my application dont know about unix and operation system anything good.

You are in the wrong forum for such question. Your question has nothing to do with Qt.
A google search will give you a much quicker answer..

wysota
2nd June 2009, 19:47
see the contents of the DISPLAY environment variable. If it's empty then you need to set it up properly (i.e. "export DISPLAY=:0"). "xhost +" may also come in handy.