LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-26-2004, 01:48 PM   #1
danahata
Member
 
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.

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

Rep: Reputation: 79
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, 03:30 PM   #3
danahata
Member
 
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?

Dana
 
  


Reply



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 11:14 AM
Modifying DISPLAY environment variable on-the-fly ktulu1115 Linux - Software 1 10-07-2005 02:18 PM
Tcl Error no display name and no DISPLAY environment variable thinkgeek Programming 5 07-06-2005 10:24 PM
setting environment variable DISPLAY jpan Debian 4 10-15-2004 06:09 PM
Environment Variable: how to change env DISPLAY in Redhat 9 lucastic Linux - General 2 07-21-2004 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:56 PM.

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