KDE Port

Asked by Chimo

Hi,
  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)
            os.popen(clr)
            clr = "dcop kdesktop KBackgroundIface setColor \"%s\" false" % (background)
            os.popen(clr)
            clr = "dcop kdesktop KBackgroundIface setColor \"%s\" true" % (foreground)
            os.popen(clr)

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

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

Question information

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

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 :
#2

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

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

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

Revision history for this message
Chimo (chimo) said :
#4

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 :
#5

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.