Registered Member
|
Is there any command line to change wallpaper in KDE4?
i.e. in Gnome: gconftool-2 -t string -s /desktop/gnome/background/picture_filename <path_to_image> If not, would be nice to have one, so that one could write a script that would control the wallpaper (such as xplanet) |
Administrator
|
At this time, it is not possible to set the wallpaper via the command line, unless you wish to manually wrangle the text of the plasma-desktoprc file, without Plasma running.
This is because Plasma completely rewrites its configuration file when shutting down, and when changes are made through its interface.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Administrator
|
This could change when Plasma will get an overhaul in its DBus interface, IIRC. And going from memory I think that such a thing will be discussed at the upcoming Plasma development sprint (Tokamak III).
"Violence is the last refuge of the incompetent."
Plasma FAQ maintainer - Plasma programming with Python |
Registered Member
|
Would you be willing to speculate as to how long this might take? Thanks. Mark
mark9117, proud to be a member of KDE forums since 2008-Oct.
|
Administrator
|
Unfortunately a plan for implementing a DBUS interface to Plasma does not exist at this time. You may be able to use the Javascript console to perform something however.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
That's a pity that KDE does not provide any programmatic interface to the desktop background.
My goal was to write a script that would download random wallpapers from various websites and display them as background pics. I could achieve it with the following workaround: save the downloaded picture to a folder (i.e. ~/.wallpaper/picture.jpg) and then tell plasma to show pictures in that folder in a slideshow. Since there is only one picture it works. |
Administrator
|
This would perhaps better be done through a Plasma wallpaper plugin.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
KDE Developer
|
Although the idea of a complete d-bus interface for Plasma is abandoned due to Aaron's work on JavaScript console (decision made at Tokamak 3) a few functions could be added to it.
The wallpaper one is requested often, so ... maybe. |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient