|
|
wmUpMon
User Comments
nice butwhere to download?
this dockapp looks nice and I have tried to download from several places but the links are all dead. Is there somewhere I can download this from?
Re: nice butwhere to download?
Apparently, when I submitted later versions of this dockapp, the files didn't get uploaded and I didn't notice. I re-uploaded the latest version (0.1.1a), and removed version 0.1.1 since it is essentially the same thing, minus the file Gentoo users require to compile. You can always use the link at the top of the page to the official website if there are any future problems.
Wrong time
Displays wrong uptime, off by 30 days!
Fixed
Re-running it and it was fixed...
new URL
since it won't let me modify the URL for the project homepage, i'll post it here (which it has been for a long time now):
http://j-z-s.com/projects/index.php?project=wmupmon
SEGV on AMD64 / gcc4.0.2
I went to compile and run this on my new Suse10.0 box and found it would SEGV immediately. My fix was to simplify the xpm handling:
------ BEGIN PATCH ------
--- main.c 2007-01-31 12:20:47.000000000 +0000
+++ main.c.bck 2004-12-11 19:07:21.000000000 +0000
@@ -66,8 +66,10 @@
int main(int argc, char **argv)
{
int i, a, aa, b, bb;
- char** real_off_xpm;
- char** real_on_xpm;
+ char* real_off_xpm[(style == 2 ? sizeof(backlight2_off_xpm) :
+ sizeof(backlight_off_xpm))];
+ char* real_on_xpm[(style == 2 ? sizeof(backlight2_on_xpm) :
+ sizeof(backlight_on_xpm))];
XEvent event;
XpmColorSymbol colors[2] = { {"Back0", NULL, 0}, {"Back1", NULL, 0} };
int ncolor = 0;
@@ -77,12 +79,20 @@
/* setup pixmap to use - this is ugly but it works */
+ a = sizeof(backlight2_off_xpm);
+ aa = sizeof(backlight2_on_xpm);
+ b = sizeof(backlight_off_xpm);
+ bb = sizeof(backlight_on_xpm);
if(style == 2){
- real_off_xpm = backlight2_off_xpm;
- real_on_xpm = backlight2_on_xpm;
+ for(i=0; i
+ real_off_xpm[i] = backlight2_off_xpm[i];
+ for(i=0; i
+ real_on_xpm[i] = backlight2_on_xpm[i];
} else {
- real_off_xpm = backlight_off_xpm;
- real_on_xpm = backlight_on_xpm;
+ for(i=0; i
+ real_off_xpm[i] = backlight_off_xpm[i];
+ for(i=0; i
+ real_on_xpm[i] = backlight_on_xpm[i];
}
/* Initialize Application */
------ END PATCH ------
HTH
Opps
Not only is that patch i jsut posted the wrong way round, but the formatting on the site screws it up!
I've now hosted it at http://www.shinny.co.uk/wmupmon.main.c.patch
HTH,
Mark
|
|
|
|