View Full Version : Running rhythmbox-client from cron and issues with dbus

16th January 2010, 11:36 PM
Hi all, i'm having a little issue with a small script i'm working on.

It's a bash script that, amongst other things, checks the current playing song in Rhythmbox with "rhythmbox-client --print-playing". Now the thing is that if I run the script by hand it works perfectly, but when it's run by cron this part gives the following error:

(rhythmbox-client:9848): Rhythmbox-WARNING **: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

It's running on my own cron (crontab -e) set to my user... so i'm not sure what the error may be...

30th July 2011, 12:43 PM
Did you ever figure this out? I'm having the same problem when trying to run from php exec().