fixed issue 134

git-svn-id: http://tint2.googlecode.com/svn/trunk@164 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-08-29 16:19:01 +00:00
parent e43c22ddfd
commit f3260b67c5
4 changed files with 40 additions and 20 deletions

View File

@@ -48,6 +48,9 @@
#include "battery.h"
#endif
// global path
char *config_path = 0;
char *thumbnail_path = 0;
// --------------------------------------------------
// backward compatibility
@@ -739,6 +742,7 @@ deb:
path1 = g_build_filename (g_get_user_config_dir(), "tint2", "tint2rc", NULL);
if (g_file_test (path1, G_FILE_TEST_EXISTS)) {
i = config_read_file (path1);
config_path = strdup(path1);
g_free(path1);
return i;
}
@@ -781,6 +785,7 @@ deb:
g_free(path2);
i = config_read_file (path1);
config_path = strdup(path1);
g_free(path1);
return i;
}