Am Montag, 7. September 2020, 10:40:42 CEST schrieb Peter Suetterlin:
Hans-Peter Jansen wrote:
Am Donnerstag, 3. September 2020, 20:45:30 CEST schrieb Hans-Peter Jansen:
Hi,
what's the canonical way to run scripts (eg. from crontab), that want to access the X session, (eg. xprop, wmctrl), now that xauth is a random file in /run/user/$UID?
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. Would that possibly help with the x11vnc issues, too? See boo#1174493
Are you having that xhost line as default somewhere in your profile(s)?
From ~/.profile:
# allow the local user to execute X dependent programs test -n "$DISPLAY" && xhost +si:localuser:$USER &>/dev/null Cheers, Pete -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org