Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # adduser newuser
- #!/bin/bash
- xdotool mousemove 31 61 click 1
- $ su newuser
- newuser@myPC:~$ /home/myregularuser/macro.bash
- No protocol specified
- Error: Can't open display: (null)
- Failed creating new xdo instance
- if xhost >& /dev/null; then
- echo "export DISPLAY="$DISPLAY"" > $HOME/.display
- fi
- #!/bin/bash
- source $HOME/.display
- xdotool mousemove 31 61 click 1
- newuser@myPC:~$ /home/myregularuser/macro.bash
- regularuser@myPC:~$ source /home/newuser/.display # Setting $DISPLAY as the newuser $DISPLAY value
- regularuser@myPC:~$ su newuser -c "xauth extract /home/newuser/.Xauthority $DISPLAY" | xauth merge
- xauth: (argv):1: bad "merge" command line
- Password:
- xauth: timeout in locking authority file /run/user/1000/gdm/Xauthority
- su newuser -c "xauth extract /home/newuser/.Xauthority $newuserDISPLAY" | xauth merge
Add Comment
Please, Sign In to add comment