summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-03-19 10:03:55 +0100
committerportix <portix@gmx.net>2012-03-19 10:03:55 +0100
commite7471d91a0dbb48c0f33d83fa592203c8d124b14 (patch)
tree9f4f295e63bafb44eced21763762eb3faee65f9c /src/util.c
parent815922c4c7a0ff6db3f57967fd74a3bad2f7b640 (diff)
parentba7cc9861c11b07af8040494ec922496fba8106c (diff)
downloaddwb-e7471d91a0dbb48c0f33d83fa592203c8d124b14.zip
Merging branch refactor into default
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index 783df35a..d1ce2675 100644
--- a/src/util.c
+++ b/src/util.c
@@ -411,20 +411,20 @@ util_get_user_data_dir(const char *dir) {
/* util_get_data_file(const char *filename) return: filename (alloc) or NULL {{{*/
char *
-util_get_data_file(const char *filename) {
+util_get_data_file(const char *filename, const char *dir) {
if (filename == NULL)
return NULL;
char *path = NULL;
char *ret = NULL;
char *basename = g_path_get_basename(filename);
- path = util_get_user_data_dir("lib");
+ path = util_get_user_data_dir(dir);
if (path != NULL) {
ret = g_build_filename(path, basename, NULL);
if (g_file_test(ret, G_FILE_TEST_EXISTS))
goto clean;
}
- path = util_get_system_data_dir("lib");
+ path = util_get_system_data_dir(dir);
if (path != NULL) {
ret = g_build_filename(path, basename, NULL);
if (g_file_test(ret, G_FILE_TEST_EXISTS))