Can't use external program to set background

Dark Shadow shadowofdarkness at gmail.com
Fri Sep 24 08:06:38 CEST 2004


Thanks the -n worked awesome and as for the extra work when I first
tried the echo it didn't substitute the variables for some reason but
when I tried again it works so I have fixed it to the simpler method
now.


On Thu, 23 Sep 2004 22:57:53 -0700, Brian J. Tarricone
<bjt23 at cornell.edu> wrote:
> ah, you're using 4.0.x, which means xfdesktop can't handle a newline at
> the end of the file.  for the second 'echo' statement i gave you make it
> 'echo -n'.
> 
> also:
> 
> echo `echo $DIR`/20`echo $YEAR`/ga`echo $YEAR``echo $MONTH``echo \
> $DAY`.gif>>$BACKDROPLIST
> 
> why not just:
> 
> echo -n $DIR/20$YEAR/ga$YEAR$MONTH$DAY.gif>>$BACKDROPLIST
> 
>     -brian
> 
> 
> 
> Dark Shadow wrote:
> 
> >Thanks I got it setup but it is strange it only works about 40% of the
> >time when going in succession like this
> >#gg
> >#gg
> >#gg
> >#gg
> >
> >If it works it is fine but the rest of the time a popups comes up with
> >this dialog
> >
> >xfdesktop error: loading backdrop image: Failed to open file '': No
> >such file or directory
> >
> >I thought there was a error in the script but this happens randomly
> >among it working perfectly
> >
> >
> >Here is the updated script and incase your wondering why I use full
> >paths for wget and xfdesktop it is because fcrontab doesn't set a path
> >and I have this set through a cron job
> >
> >#!/bin/sh
> >
> >export DIR=/mm/garfield
> >export YEAR=`date +%y`
> >export MONTH=`date +%m`
> >export DAY=`date +%d`
> >export BACKDROPLIST=/home/darkshadow/.xfce4/backdrop.list
> >export BINXFCE=/opt/xfce/bin/
> >
> >if [ -e "$DIR/20$YEAR/ga$YEAR$MONTH$DAY.gif" ]
> >
> >then
> >
> >echo '# xfce backdrop list'>$BACKDROPLIST
> >echo `echo $DIR`/20`echo $YEAR`/ga`echo $YEAR``echo $MONTH``echo
> >$DAY`.gif>>$BACKDROPLIST
> >$BINXFCE/xfdesktop -reload
> >
> >else
> >
> >/usr/local/bin/wget
> >http://images.ucomics.com/comics/ga/20$YEAR/ga$YEAR$MONTH$DAY.gif -O
> >$DIR/20$YEAR/ga$YEAR$MONTH$DAY.gif
> >echo '# xfce backdrop list'>$BACKDROPLIST
> >echo `echo $DIR`/20`echo $YEAR`/ga`echo $YEAR``echo $MONTH``echo
> >$DAY`.gif>>$BACKDROPLIST
> >$BINXFCE/xfdesktop -reload
> >
> >fi
> >_______________________________________________
> >Xfce mailing list
> >Xfce at xfce.org
> >http://lunar-linux.org/mailman/listinfo/xfce
> >http://www.xfce.org
> >
> >
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce
> http://www.xfce.org
>



More information about the Xfce mailing list