I've got yet another problem. I want to write a script that changes my background each time a given timespan runs out.
I use gsetting to change it. Strange thing is, outside of the script it works fine with...
gsettings set org.gnome.desktop.background picture-uri "file:///home/thunderuser/Wallpaper/Applejack - Silhouette.png"
... but in the Script, Gnome seems to go to sleep or drink some beer or whatever. Point is, it does not do what it should. Here is the script.
1 #!/bin/bash 2 3 #set -o errexit 4 5 TIMEOUT=10 6 BGDIR=/home/thunderuser/Wallpaper 7 8 while : 9 do 10 for f in $BGDIR/* 11 do 12 echo "$f" 13 gsettings set org.gnome.desktop.background picture-uri "file//$f" 14 sleep $TIMEOUT 15 done 16 done
Thanks in advance.
file:// != file// You're missing a colon.
Wow. I will kill myself right now. That is really, really emberrasing. I even looked up the dconf-edior and should have noticed the :
Thank you very much, it works like a charm now.