Ok, so the missing export of $DISPLAY appears to be the problem (amarok requires this, too).
Here's a quote from at.c however:
/* Write out the environment. Anything that may look like a
* special character to the shell is quoted, except for \n, which is
* done with a pair of ""'s. Dont't export the no_export list (such
* as TERM or DISPLAY) because we don't want these.
*/
where no_export is:
"TERM", "DISPLAY", "_", "SHELLOPTS", "BASH_VERSINFO", "EUID", "GROUPS", "PPID", "UID"
Ok, so the missing export of $DISPLAY appears to be the problem (amarok requires this, too).
Here's a quote from at.c however:
/* Write out the environment. Anything that may look like a
* special character to the shell is quoted, except for \n, which is
* done with a pair of ""'s. Dont't export the no_export list (such
* as TERM or DISPLAY) because we don't want these.
*/
where no_export is:
"TERM", "DISPLAY", "_", "SHELLOPTS", "BASH_VERSINFO", "EUID", "GROUPS", "PPID", "UID"