Greetings!
I am implementing a backup solution, and I need to access the X11 display for getting a password from the user and displaying status information. I have tried setting $DISPLAY in the script to :0.0 (hardcoded), but xhost and misc complain that they cannot open the display. What should I do?
PS: The script is here: http://dpaste.com/109435/
You need the X Authentication information. I do not believe that xhost
can "break in" to an X session and allow access without it (you'd need to have the user do it for you) and if you have it, then there is no need to use xhost at all.
Try
export DISPLAY=:0.0
export XAUTHORITY=/home/user/.Xauthority
and then running your commands.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With