I can change the desktop background by right clicking on it and going through the resulting menu but I'd like to be able to write a program which cycles through my chosen backgrounds by selecting a new one on each reboot.
How can a program specify which image is to be used as the background?

Best Wishes
Pete