[Pkg-xfce-devel] Bug in xfce4-sensors-plugin-0.10.0

Raphael Groner raphgro at web.de
Tue Oct 17 23:17:54 UTC 2006


Hi.

I got the tar.gz sources for xfce4-sensors-plugin version 0.10.0 from 
http://goodies.xfce.org/projects/panel-plugins/xfce4-sensors-plugin.

With a build of this sources and also in the debian package currently in 
  etch/testing, a bug was determined by me:

Only the last detected disk from linux kernel (uname -r says 
2.6.17-2-k7), on my machine /dev/hde, is shown after restart and 
activating *all* detected devices before. All detected disks here in 
order: /dev/hda  /dev/hdk  /dev/hdi  /dev/hdg  /dev/hde

I have looked around in and experimented with the code in 
panel-plugin/sensors.c a little bit. Hence, i can give a suggestion for 
a patch, but this is no solution for the problem.

The problem seems to be that the string "Hard disks" is translated, for 
eample here in "Festplatten" for german. Then the initializatin code can 
not assign the ini entries to the correct devices after a restart of the 
panel. The number of the problematic line is really 1220 in 
panel-plugin/sensors.c, but i do either know and understand what sense 
this line should make, and at the other site have no idea to fix it.

My patch enables all disks at every time, not very good in my opinion 
and the bug should be fixed in the above said line:

n$ diff sensors.c sensors.c.bak
912c912
<              st->sensorCheckBoxes [disksensor] [diskIndex] = TRUE;
---
 >              st->sensorCheckBoxes [disksensor] [diskIndex] = FALSE;


Greets from Germany, Ulm.

Raphael, in IRC mostly damnageHack or damnage_hack or similiar.




More information about the Pkg-xfce-devel mailing list