3 Sep
2020
3 Sep
'20
21:12
Hans-Peter Jansen wrote:
Hans-Peter Jansen wrote:
Before the switch, it was possible to run such scripts from crontab, using the pattern:
XAUTHORITY=~/.Xauthority DISPLAY=:0 ~/bin/script Scratch that.
Florian provided the magic spell: "xhost +si:localuser:$USER" does the trick. You can also use this command line. It takes the newest xauth_* file for XAUTHORITY
XAUTHORITY=$(ls -1t /run/user/$(id -u)/xauth_*|head -n1) DISPLAY=:0 ~/bin/script Greetings, Björn -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org