]> Dogcows Code - chaz/tint2/commitdiff
fixed : battery disabled when needed
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 20 Apr 2010 17:22:05 +0000 (17:22 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 20 Apr 2010 17:22:05 +0000 (17:22 +0000)
src/battery/battery.c

index 45180f9377e45cd29c7277522b0294f285156f46..3cb660ecfefedf1bb18aa73cb1e57d3d9b394821 100644 (file)
@@ -134,6 +134,7 @@ void init_battery()
                g_dir_close(directory);
        if (!battery_dir) {
                fprintf(stderr, "ERROR: battery applet can't found power_supply\n");
+               default_battery();
                return;
        }
 
This page took 0.023169 seconds and 4 git commands to generate.