From owner-freebsd-questions Sat Jul 26 17:31:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA27298 for questions-outgoing; Sat, 26 Jul 1997 17:31:45 -0700 (PDT) Received: from tok.qiv.com ([204.214.141.211]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA27293 for ; Sat, 26 Jul 1997 17:31:43 -0700 (PDT) Received: (from uucp@localhost) by tok.qiv.com (8.8.5/8.8.5) with UUCP id TAA10834; Sat, 26 Jul 1997 19:31:36 -0500 (CDT) Received: from localhost (jdn@localhost) by acp.qiv.com (8.8.5/8.8.5) with SMTP id TAA04467; Sat, 26 Jul 1997 19:29:57 -0500 (CDT) X-Authentication-Warning: acp.qiv.com: jdn owned process doing -bs Date: Sat, 26 Jul 1997 19:29:57 -0500 (CDT) From: "Jay D. Nelson" To: "Chris F." cc: freebsd-questions@FreeBSD.ORG Subject: Re: XWindows: Can't open display: In-Reply-To: <199707261927.OAA24580@smtp.gte.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Try: export DISPLAY=:0.0 or setenv DISPLAY :0.0 depending on your shell. You have to do this anytime you use 'su -'. You shouldn't be working as root anyway. -- Jay On Sat, 26 Jul 1997, Chris F. wrote: ->I am using FreeBSD 2.2.2. When running Xwindows applications I get the ->following error: -> ->(When I don't set the display variable) -> ->Error: Can't open display: -> ->(When I set it to :0) -> ->Error: Can't open display: :0 -> ->I don't know what I should set my display variable to. I have tried setting ->it to :0, unix:0, unix:0.0, as they were suggested in archived mailing list ->messages. None of them caused any different results. Please copy all ->suggestions to me at theta@gte.net. -> ->Thank you, ->Chris -> ->