Possible Duplicate:
Open a window on a remote X display (why “Cannot open display”)?
I'm trying to run a cron job that needs access to my X session. I know my X session will always be :0, so part of it is easy:
/30 * * * * DISPLAY=:0 command
but the problem is that gdm3 no longer uses $HOME/.Xauthority
; instead it uses /var/run/gdm3/auth-for-anthony-XXXXXX/database
where the X's change each login.
Other than symlinking $HOME/.Xauthority
to the GDM3 file each login (or editing crontab each login, etc—automatically in .xsession
of course), is there some way to get the cron job working?
JZ7Kpd
. Probably frommkdtemp
. They likely aren't guessable, and/var/run/gdm3
is 0711, so you can't list it (except as root) – derobert Nov 29 '11 at 22:42