boramalper / himawaripy

Set near-realtime picture of Earth as your desktop background
http://labs.boramalper.org/himawaripy
MIT License
1.62k stars 239 forks source link

KDE 5 support #57

Closed mamantoha closed 8 years ago

mamantoha commented 8 years ago

You can set a wallpaper in Plasma 5.7 with this command:

qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print (allDesktops);for (i=0;i<allDesktops.length;i++) {d = allDesktops[i];d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General");d.writeConfig("Image", "file:///path/to/image.png")}'

I hope this could help you to add support for KDE 5.

boramalper commented 8 years ago

Thanks a lot! Do you know how to detect KDE version programmatically, then I can implement it right away.

EDIT: I've just realized that it can't change the background in KDE 4 as well (see set_background())! Do you know how to change background in KDE 4.

mamantoha commented 8 years ago

@boramalper no, I don't use KDE 4.

Thanks @imnofox for implementation :beer:

boramalper commented 8 years ago

Done!