LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Cinammon Wallpaper Changer (http://www.linuxquestions.org/questions/linux-desktop-74/cinammon-wallpaper-changer-4175455366/)

thund3rstruck 03-24-2013 08:50 AM

Cinammon Wallpaper Changer
 
I have recently discovered that KDE 4 provides no API or mechanism to programmatically change the desktop wallpaper
(ref: http://www.linuxquestions.org/questi...ne-4175454383/) which makes it unsuitable for these clients. As a result, I am investigating Cinnamon.

I want to be absolutely certain before I go down this path that I can change the desktop background per the requirements (currently a python script fetches backgrounds from a web service and sets the wallpaper appropriately based on organizational membership and structure).

Since Cinnamon is a fork of gnome, can I assume that the standard gnome way of setting wallpaper will work:

Code:

subprocess.call(["gsettings", "set", "org.gnome.desktop.background", "picture-uri", '"file://' + filename + '"'])

thund3rstruck 03-25-2013 08:52 AM

Still works like a champ.


All times are GMT -5. The time now is 07:44 PM.