Gtk-WARNING **: cannot open display:

Ask a Question related to Debian, Design and Development.

  1. #1

    Default Re: Gtk-WARNING **: cannot open display:

    On Tue, 2003-08-05 at 10:57, ZekeVarg wrote:
    > Hi!
    >
    > Have just installed debian and run a dist-upgrade to sid. Now when I try
    > to open a gtk based program I get this error message:
    >
    > Gtk-WARNING **: cannot open display:
    >
    > Any idee's on what's the problem and how to fix it?
    >
    > Zeke
    Zeke,

    IIRC, the display is not set by default for root. If you are
    trying to do this as root you need to set the display manually,
    or better yet, start X as a regular user, not root, and then
    only use root when you absolutely have to. Of course I'm assuming
    you're actually trying to use the program under X and not at the
    console.

    Regards
    --
    Kourosh <debian@mindwaresystems.com>


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Kourosh Guest

  2. Similar Questions and Discussions

    1. #40068 [NEW]: Warning: Unknown: failed to open stream: No such file or directory in Unknown..
      From: triphius at tripslair dot com Operating system: FreeBSD 6.1 PHP version: 5.2.0 PHP Bug Type: Scripting Engine problem...
    2. Portal display to open up the full record
      Hi I just created a simple demo database in FMP6, DB is CUSTOMERS and PROPERTIES Customers is the main database Properties is the related...
    3. Little Job - Open POP Mailbox and Display
      .. Hello I have a little job. Does anyone want to help? Prepared to pay if necessary. I want to open a pop mailbox to display/view headers....
    4. cron & cannot open display
      Hello I have been trying to get cron to execute programs at set times, As a test I am trying to execute dillo (loads fast!) I setup cron as user...
    5. Odd open but no warning
      Recently I had to look at a perl script which was misbehaving. When I looked at it the code was pretty horrific, among other horrors was the...
  3. #2

    Default Re: Gtk-WARNING **: cannot open display:

    On Tue, 2003-08-05 at 13:57, ZekeVarg wrote:
    > Hi!
    >
    > Have just installed debian and run a dist-upgrade to sid. Now when I try
    > to open a gtk based program I get this error message:
    >
    > Gtk-WARNING **: cannot open display:
    >
    > Any idee's on what's the problem and how to fix it?
    Yeah... shutdown X and then restart it. If that doesn't work...

    Are you using the "local Display" and running locally?
    or Are you trying to spawn an X program to your local Display from a
    Remote machine... with the local machine being upgraded?
    or Are you trying to run locally and export remotely?

    Give us some details MAN... :)
    --
    greg, [email]greg@gregfolkert.net[/email]
    REMEMBER ED CURRY! [url]http://www.iwethey.org/ed_curry[/url]

    Convexion sees between your eyes. Herds of gazelle concave at your feet!

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQA/L/jc7WZpcbUkaHwRAgC3AJ9VsqMDdHtjyyOMdvSWKS4VfSr5JQCg u7jB
    36uPc9ENl7yxOLsV1VAVa28=
    =2yp+
    -----END PGP SIGNATURE-----

    Greg Folkert Guest

  4. #3

    Default Re: Gtk-WARNING **: cannot open display:

    I'm running X as a user. QT programs works just fine.

    Zeke
    > IIRC, the display is not set by default for root. If you are
    > trying to do this as root you need to set the display manually,
    > or better yet, start X as a regular user, not root, and then
    > only use root when you absolutely have to. Of course I'm assuming
    > you're actually trying to use the program under X and not at the
    > console.
    >
    > Regards
    > --
    > Kourosh <debian@mindwaresystems.com>

    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    ZekeVarg Guest

  5. #4

    Default Re: Gtk-WARNING **: cannot open display:

    > Yeah... shutdown X and then restart it. If that doesn't work...
    That helpt, thanks. I'm new to debian, used to run RedHat.

    Zeke


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    ZekeVarg Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139