--display parameter never works
I've been trying to execute a program from the command-line using sudo like so:
sudo -u user_progs /usr/bin/firefox --display=:0.0 But I always get an error like "Display not found." BTW- This is on a local machine. What am I missing? Maybe something to do with Xauth or .Xauthority? |
Try changing
Code:
sudo -u user_progs /usr/bin/firefox --display=:0.0 Code:
sudo -u user_progs /usr/bin/firefox --display :0.0 -- Rick |
Found the trick!
Thanks for the reply, rnturn, but that didn't seem to make a difference. It seems you need to run the command:
Code:
xauth local: Case closed, Simon |
Quote:
Sorry to hear that you ran into another roadblock. Try posting your problem here on LQ. There's lot of eyes looking at posts and someone ought to be able to help out. Later... And "Have a lot of fun..." -- Rick |
Xauth give other users authority to reach your X serssion.. By default no one else can use it but its propietary.
|
Quote:
|
Code:
chvt 7 ; sleep 5 ; XAUTHORITY=/var/lib/gdm/:0.Xauth DISPLAY=:0.0 xmessage "$1" |
All times are GMT -5. The time now is 06:14 PM. |