View Single Post
Posts: 254 | Thanked: 509 times | Joined on Nov 2011 @ Canada
#7
I was taking a look at this and I'm not the strongest in shell scripting (so I could be wrong), but it looks like you aren't always using the PICTURE_DIR variable.

In the check if the picture already exists:
Code:
if [ ! -e ~/Immagini/${TODAY}_ngeo.jpg ]; then
In the preview code:
Code:
 /usr/bin/dbus-send --print-reply --dest=com.nokia.image_viewer /com/nokia/image_viewer com.nokia.image_viewer.mime_open string:file:///home/user/MyDocs/photos/${TODAY}_ngeo.jpg

in the code that sets the wallpaper:
Code:
	gconftool -s --type string /apps/osso/hildon-desktop/views/1/bg-image ~/MyDocs/photos/${TODAY}_ngeo.jpg
	gconftool -s --type string /apps/osso/hildon-desktop/views/2/bg-image ~/MyDocs/photos/${TODAY}_ngeo.jpg
	gconftool -s --type string /apps/osso/hildon-desktop/views/3/bg-image ~/MyDocs/photos/${TODAY}_ngeo.jpg
	gconftool -s --type string /apps/osso/hildon-desktop/views/4/bg-image ~/MyDocs/photos/${TODAY}_ngeo.jpg
also it looks like you are using ~/MyDocs/pic_url in one section of the code and /tmp/pic_url in another? probably /tmp/pic_url is the best place...
 

The Following 2 Users Say Thank You to shawnjefferson For This Useful Post: