The 03.05.19 at 14:14, Anders Johansson wrote:
On Monday 19 May 2003 11.33, Carlos E. R. wrote:
'DISPLAY= yast2' will set DISPLAY to yast2, instead of running yast2 with DISPLAY unset, which was what Philipp meant, I guess.
I very much suspect he meant DISPLAY= yast2, with a space between = and yast2. This will unset the environment variable DISPLAY for the command only, and not for the rest of the session.
DISPLAY=<space>yast2
Could be, but it doesn't work. His intention, i think, was to unset DISPLAY, but it can not be done that way; Look: cer@nimrodel:~> set |grep DISPLAY DISPLAY=:0 cer@nimrodel:~> DISPLAY= set |grep DISPLAY DISPLAY=:0 You see? With two spaces, "display" is still set. However, if I su to root like this (a login shell): cer@nimrodel:~> su - Password: nimrodel:~ # set |grep DISPLAY nimrodel:~ # it is also solved - this is the way I normally work when I have to be root, by the way. -- Cheers, Carlos Robinson