*fix* applied patch from issue 299

git-svn-id: http://tint2.googlecode.com/svn/trunk@576 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85 2010-10-21 07:29:52 +00:00
parent 00e6485d26
commit ad716c907a

View file

@ -194,8 +194,14 @@ void init_battery()
}
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