You are not logged in.
I just installed Arch on a new machine, installed Mate desktop environment and LightDM for the display manager; upon logging in to the DE the environment variable $DISPLAY is set incorrectly:
xaero ~ echo ${DISPLAY}
:0This causes problems when attempting to start programs using gksu, namely that those applications cannot open the display server. Setting the DISPLAY variable manually rectifies the problem:
DISPLAY=:0.0 gksu someapplicationWhat can I try to fix the problem permanently, I'd really rather not have to do something hacky like setting DISPLAY in ~/.bashrc.
Offline
What exactly is wrong here? What are the error messages and what did you set DISPLAY to to fix it?
Offline
1.) What's wrong
Currently $DISPLAY only defines the server, not the screen (:0, instead of :0.0 as expected)
2.) How to fix it:
This is nvidia's fault this go around, without defining Screen in Serverlayout the Display environment variable never get's properly set;
Section "ServerLayout"
Screen 0 "Screen0" 0 0just adding that second line causes things to go back to normal.
The error messages would be similar to this:
"Unable to open display:" (truncated, just like that)
Anything run using gksu and any applications that depended on the DISPLAY env variable would be broken.
Offline
I installed gksu and run st (my terminal emulator of choice) as root:
[root@b161 karol]# echo $DISPLAY
:0Seems to work here.
Offline