Results 1 to 6 of 6

Thread: X-server. How can I know - X-server is running or not?

  1. #1
    Join Date
    Dec 2008
    Location
    TaganrogNativelandChehov,Russia
    Posts
    64
    Thanks
    1
    Thanked 8 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Red face X-server. How can I know - X-server is running or not?

    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?

  2. #2
    Join Date
    Dec 2008
    Location
    TaganrogNativelandChehov,Russia
    Posts
    64
    Thanks
    1
    Thanked 8 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: X-server. How can I know - X-server is running or not?

    anybody help me please....

  3. #3
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: X-server. How can I know - X-server is running or not?

    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...

  4. #4
    Join Date
    Dec 2008
    Location
    TaganrogNativelandChehov,Russia
    Posts
    64
    Thanks
    1
    Thanked 8 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: X-server. How can I know - X-server is running or not?

    Quote Originally Posted by lni View Post
    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.

  5. #5
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: X-server. How can I know - X-server is running or not?

    Quote Originally Posted by kwisp View Post
    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..

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: X-server. How can I know - X-server is running or not?

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 3
    Last Post: 29th November 2009, 20:24
  2. Replies: 0
    Last Post: 22nd February 2009, 13:15
  3. How to ping a server ?
    By Nyphel in forum Newbie
    Replies: 2
    Last Post: 23rd April 2007, 11:27
  4. How a server can write "Hello" to a browser ?
    By probine in forum Qt Programming
    Replies: 2
    Last Post: 1st December 2006, 14:43
  5. synching client readings to server output
    By OnionRingOfDoom in forum Qt Programming
    Replies: 14
    Last Post: 28th January 2006, 18:15

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.