diff options
author | portix <portix@gmx.net> | 2012-03-19 10:03:55 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-03-19 10:03:55 +0100 |
commit | e7471d91a0dbb48c0f33d83fa592203c8d124b14 (patch) | |
tree | 9f4f295e63bafb44eced21763762eb3faee65f9c /src/util.c | |
parent | 815922c4c7a0ff6db3f57967fd74a3bad2f7b640 (diff) | |
parent | ba7cc9861c11b07af8040494ec922496fba8106c (diff) | |
download | dwb-e7471d91a0dbb48c0f33d83fa592203c8d124b14.zip |
Merging branch refactor into default
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) |