I have over 500 pictures. entering all of their file names by hand isn&#39;t an option.<br clear="all">Jacob Mansfield<br>Programmer<br><br>
<br><br><div class="gmail_quote">On 16 October 2010 10:27, Steve Fisher <span dir="ltr">&lt;<a href="mailto:xirconuk@gmail.com">xirconuk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="gmail_quote"><div><div></div><div class="h5">On 16 October 2010 10:01, Jacob Mansfield <span dir="ltr">&lt;<a href="mailto:cyberjacob@gmail.com" target="_blank">cyberjacob@gmail.com</a>&gt;</span> wrote:<br></div>

</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
I am attempting to make the desktop background in gnome change automatically to a random image from a set folder. I know the command I need is<br><br>gconftool-2 --type=string -s /desktop/gnome/background/picture_filename /full/path/to/image/file<br>




<br>I have worked this into a basic shell script:<br><br>time=$1<br># time to wait between changing the background in secs<br>while [ : ]<br> do<br> for filepath in `cat list`<br> # list is a list of all files in the backgrounds directory and is the only other non-image file in the folder<br>




  do<br>  echo $filepath<br>  # for debug<br>  gconftool-2 --type=string -s /desktop/gnome/background/picture_filename “$filepath”<br>  sleep $time<br>  done<br> done<br><br>however allthough this sets the value (I can see it in the xml configuration file with emacs) the background simply goes to the set colour not the image. is there another value I need to get the background as an image? or is there something wrong with my script? all help appreciated.<br clear="all">


<font color="#888888">

Jacob Mansfield<br>Programmer<br><br>
</font><br></div></div>--<br>
<a href="mailto:ubuntu-uk@lists.ubuntu.com" target="_blank">ubuntu-uk@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk</a><br>
<a href="https://wiki.ubuntu.com/UKTeam/" target="_blank">https://wiki.ubuntu.com/UKTeam/</a><br>
<br></blockquote></div><br><div>Jacob</div><div><br></div><div>Have a look at:</div><div><br></div><div><a href="http://www.itlure.com/2009/11/create-your-own-gnome-background.html" target="_blank">http://www.itlure.com/2009/11/create-your-own-gnome-background.html</a></div>


<div><br></div><font color="#888888"><div>Steve</div>
</font><br>--<br>
<a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk</a><br>
<a href="https://wiki.ubuntu.com/UKTeam/" target="_blank">https://wiki.ubuntu.com/UKTeam/</a><br>
<br></blockquote></div><br>