DCOP calls and cron

D. Michael McIntyre michael.mcintyre at rosegardenmusic.com
Sun Feb 18 15:55:23 UTC 2007

On Sunday 18 February 2007 8:12 am, Thomas Olsen wrote:
> I'm guessing the dcop call fails for some reason...?

I'm guessing either a user thing or a $DISPLAY thing.  I threw some more 
debugging echoes in here.   What does it say when you run it from the command 
line, and how is it different running out of cron?

cd $HOME/Doonesbury
REMOTE="http://images.ucomics.com/comics/db/`date +'%Y'`/db`date \ 
LOCAL=$HOME/Doonesbury/db`date +'%y%m%d'`.gif

echo "PWD:     $PWD" > $log
echo "REMOTE:  $REMOTE" >> $log
echo "LOCAL:   $LOCAL" >> $log
echo "HOME:    $HOME" >> $log
echo "DISPLAY: $DISPLAY" >> $log
echo "WHOAMI:  $(whoami)" >> $log

wget $REMOTE
sleep 5
dcop kdesktop KBackgroundIface setWallpaper 2 $LOCAL 1
> ----[snip]------------------------------------------------------

D. Michael McIntyre 

More information about the kubuntu-users mailing list