Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-26-2004, 02:48 PM   #1
Registered: Aug 2003
Posts: 30

Rep: Reputation: 15
DISPLAY environment variable

If, as a user, I type 'echo $DISPLAY', I get :0.0. Though, if I type su - , and then 'echo $DISPLAY', I get nothing. This doesn't seem normal. Is this the same behavior for others? The reason I ask is that I think it's related to a problem I am having with a screensaver which grabs an image of the desktop not functioning properly.

Old 02-26-2004, 03:12 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
That is the correct behaviour. If you want to start an application on a specific X server you just need to change the DISPLAY variable.
Old 02-26-2004, 04:30 PM   #3
Registered: Aug 2003
Posts: 30

Original Poster
Rep: Reputation: 15
Well I've got another machine with Linux and it's got it's DISPLAY varibale pre-set, I guess my question is, how can I make su - start up with its DISPLAY variable preset?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem withChanging DISPLAY environment variable to display on someone else's screen wantsri Linux - Networking 1 10-25-2005 12:14 PM
Modifying DISPLAY environment variable on-the-fly ktulu1115 Linux - Software 1 10-07-2005 03:18 PM
Tcl Error no display name and no DISPLAY environment variable thinkgeek Programming 5 07-06-2005 11:24 PM
setting environment variable DISPLAY jpan Debian 4 10-15-2004 07:09 PM
Environment Variable: how to change env DISPLAY in Redhat 9 lucastic Linux - General 2 07-21-2004 05:15 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration