Image 01
profile-image

SurJector

L G
Customizable Weather Plasmoid (CWP)

Plasma 4 Extensions by jaegerschnitzel 1069 comments

Thanks ! - Jan 10 2010
Customizable Weather Plasmoid (CWP)

Plasma 4 Extensions by jaegerschnitzel 1069 comments

It's a very nice widget and I have it fixed on my plasma.

But...

in freemeteo_com_celsius.xml the regexp are too restrictive: you cannot catch negative temperatures. Feel free to ask if you need help to change them. - Jan 09 2010
KGtk (Use KDE Dialogs in Gtk Apps)

Various KDE 1.-4. Improvements by CraigD 453 comments

Hi,

you miss two bytes in the malloc in getPidFilename() and kdialogd4 crashes reliably.

Could you apply the following (or similar) patch (sorry, space is garbled) ?

--- common/common.h.orig 2009-11-25 10:09:23.000000000 +0100
+++ common/common.h 2009-11-25 10:14:10.000000000 +0100
@@ -49,7 +49,7 @@
if(!tmp || !tmp[0])
tmp=(char *)"/tmp";

- pidfile=(char *)malloc(strlen(tmp)+strlen(PID_DIR)+strlen(user)+strlen(PID_NAME)+1);
+ pidfile=(char *)malloc(strlen(tmp)+strlen("/")+strlen(PID_DIR)+strlen(user)+strlen("/")+strlen(PID_NAME)+1);

#ifdef __KDIALOGD_H__
// We are kdialogd - so create socket folder if it does not exist...
@@ -57,7 +57,7 @@
KStandardDirs::makeDir(QString::fromAscii(pidfile));
#endif

- /* CPD: TODO get dispaly number! */
+ /* CPD: TODO get display number! */
sprintf(pidfile, "%s/%s%s/%s", tmp, PID_DIR, user, PID_NAME);
}
}
@@ -89,7 +89,8 @@
if(!tmp || !tmp[0])
tmp=(char *)"/tmp";

- sock=(char *)malloc(strlen(tmp)+strlen(SOCK_DIR)+strlen(user)+strlen(SOCK_NAME)+4+32);
+ /* 18446744073709551616 = 2 to the 64 = enough for display nr */
+ sock=(char *)malloc(strlen(tmp)+strlen("/")+strlen(SOCK_DIR)+strlen(user)+strlen("/")+strlen(SOCK_NAME)+strlen("18446744073709551616")+1);

#ifdef __KDIALOGD_H__
// We are kdialogd - so create socket folder if it does not exist...
@@ -97,7 +98,7 @@
KStandardDirs::makeDir(QString::fromAscii(sock));
#endif

- /* CPD: TODO get dispaly number! */
+ /* CPD: TODO get display number! */
sprintf(sock, "%s/%s%s/%s-%d", tmp, SOCK_DIR, user, SOCK_NAME, 1);
}
}
- Nov 25 2009