Re: Setting default wallpaper with a script

2010-05-04 Thread Aaron J. Seigo
On May 4, 2010, Antony Loebs wrote: > Ok, that's good to know. I guess that raises the question, however, as to > how the wallpaper is set in the first place (currently). Is it tucked away > in the code somewhere? btw, something that i think would be Really, Really Cool(tm): * iterate over all th

Re: Setting default wallpaper with a script

2010-05-04 Thread Aaron J. Seigo
On May 4, 2010, Antony Loebs wrote: > Ok, that's good to know. I guess that raises the question, however, as to > how the wallpaper is set in the first place (currently). Is it tucked away > in the code somewhere? yes :) Containment::setWallpaper(const QString &plugin, const QString &mode) -- A

Re: Setting default wallpaper with a script

2010-05-04 Thread Antony Loebs
On Tue, May 4, 2010 at 12:38 PM, Aaron J. Seigo wrote: > the wallpaper doesn't get notified of the change; in fact, i only added any > sort of real wallpaper support in 4.5 with the wallpaperPlugin and > wallpaperMode properties for Activity objects. > > still ... what is probably needed is a way

Re: Setting default wallpaper with a script

2010-05-04 Thread Aaron J. Seigo
On May 4, 2010, Antony Loebs wrote: > So I've continued to play around with scripting the default Plasma desktop > (with JavaScript) and have a quick question: how can I set the wallpaper? I > tried the following > --- > var activity = new Activity("desktop"); > activity.currentConfigGroup = new Ar

Setting default wallpaper with a script

2010-05-04 Thread Antony Loebs
So I've continued to play around with scripting the default Plasma desktop (with JavaScript) and have a quick question: how can I set the wallpaper? I tried the following --- var activity = new Activity("desktop"); activity.currentConfigGroup = new Array("Wallpaper"); activity.writeConfig("wallpape