*fix* applied patch from issue 299 git-svn-id: http://tint2.googlecode.com/svn/trunk@576 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
1 files changed,
7 insertions(+),
1 deletions(-)
jump to
M
src/battery/battery.c
→
src/battery/battery.c
@@ -194,8 +194,14 @@ fprintf(stderr, "ERROR: can't found energy_* or charge_*\n");
} g_free(path2); } - if (path_energy_now && path_energy_full) { + + path_current_now = g_build_filename(battery_dir, "power_now", NULL); + if (!g_file_test (path_current_now, G_FILE_TEST_EXISTS)) { + g_free(path_current_now); path_current_now = g_build_filename(battery_dir, "current_now", NULL); + } + + if (path_energy_now && path_energy_full) { path_status = g_build_filename(battery_dir, "status", NULL); // check file