[Goodies-dev] [Bug 4266] New: wrong path for battery info

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Wed Aug 6 08:48:54 CEST 2008


DO NOT REPLY TO THIS EMAIL.  Also, do not reply via email to the person
whose email is mentioned below.  To comment on this bug, please visit:
http://bugzilla.xfce.org/show_bug.cgi?id=4266

           Summary: wrong path for battery info
           Product: Xfce Panel Plugins
           Version: unspecified
          Platform: PC (x86)
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: sensors
        AssignedTo: goodies-dev at xfce.org
        ReportedBy: corsac at debian.org


Hi,

it seems that when refreshing ACPI battery info, the wrong path is taken.
get_battery_zone_value() only takes the “battery name” (the “zone”)
while it's currently given ACPI_DIR_BATTERY/devicename. ACPI_DIR_BATTERY is
already concatenated in get_battery_zone_value() so one ends up trying to open:

open("/proc/acpi/battery/battery/BAT0/state", O_RDONLY) = -1 ENOENT (No such
file or directory)

Attached patch fix that. The first one is against current svn, the second is
with the patch for #4265 applied, in case that conflicts.

Cheers,


-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Goodies-dev mailing list