diff options
Diffstat (limited to 'community/tint2/add-power-now-support.patch')
-rw-r--r-- | community/tint2/add-power-now-support.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/community/tint2/add-power-now-support.patch b/community/tint2/add-power-now-support.patch new file mode 100644 index 000000000..5057043df --- /dev/null +++ b/community/tint2/add-power-now-support.patch @@ -0,0 +1,19 @@ +diff -rup ../tint2-0.11.orig/src/battery/battery.c ./src/battery/battery.c +--- ../tint2-0.11.orig/src/battery/battery.c 2010-12-02 23:56:11.313403140 +0100 ++++ ./src/battery/battery.c 2010-12-02 23:57:22.266956142 +0100 +@@ -184,8 +184,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 |