KDE Port

Asked by Chimo

  I realize this is a gnome app, but I'm on KDE and was able to make it work with a couple of tweaks (using dcop instead of gconf).

            clr = "dcop kdesktop KBackgroundIface setWallpaper \"%s\" 4" % (output_img)
            clr = "dcop kdesktop KBackgroundIface setColor \"%s\" false" % (background)
            clr = "dcop kdesktop KBackgroundIface setColor \"%s\" true" % (foreground)

  I'm not sure if this will work with KDE4 though.

  Anyway, just sharing if anyone is interested. :-)

Question information

English Edit question
Weather wallpaper Edit question
No assignee Edit question
Solved by:
Raúl González Duque
Last query:
Last reply:
Revision history for this message
Best Raúl González Duque (zootropo) said :

Thank you very much Chimo :-)

I did know about the DCOP system from KDE (In fact I translated "Using DCOP from the command line" from the Linux Gazette to spanish years ago) but I didn't think about using it.

I'll install KDE when I have more time and try it.

Revision history for this message
Chimo (chimo) said :

Thanks Raúl González Duque, that solved my question.

Revision history for this message
Raúl González Duque (zootropo) said :

The CVS version should already works with KDE if you want to try it

Revision history for this message
Chimo (chimo) said :

Yep, works fine!

I got the known "TypeError: int() [...]" error on line 201 and 202 (humidity and pressure) though (you're probably working on that; I'm just mentioning.)

Also, I prefer setting my background as "Centered Maxpect" (number 4 in dcop) since "Centered" cuts off the text. Maybe it's because of my resolution (1024x768).

Perhaps the background position should be a configuration option for the user?

Thanks on behalf of all KDE users! :-)

Revision history for this message
Raúl González Duque (zootropo) said :

The "TypeError: int" shouldn't be a problem anymore with the latest revision. :-) Silly me.

I suppose the version you are using already gets the screen dimensions using gtk instead of having it hardcoded, doesn't it?

I should add an option so the user selects between centered, streched, etc, anyway ... yeah.