diff options
-rw-r--r-- | hardinfo/util.c | 2 | ||||
-rw-r--r-- | hardinfo/vendor.c | 2 | ||||
-rw-r--r-- | modules/benchmark.c | 2 | ||||
-rw-r--r-- | shell/syncmanager.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/hardinfo/util.c b/hardinfo/util.c index ddbc2620..4b1637d6 100644 --- a/hardinfo/util.c +++ b/hardinfo/util.c @@ -491,7 +491,7 @@ void parameters_init(int *argc, char ***argv, ProgramParameters * param) if (report_format && g_str_equal(report_format, "html")) param->report_format = REPORT_FORMAT_HTML; - gchar *confdir = g_build_filename(g_get_home_dir(), ".hardinfo", NULL); + gchar *confdir = g_build_filename(g_get_user_config_dir(), "hardinfo", NULL); if (!g_file_test(confdir, G_FILE_TEST_EXISTS)) { mkdir(confdir, 0744); } diff --git a/hardinfo/vendor.c b/hardinfo/vendor.c index a5aaecef..86705e10 100644 --- a/hardinfo/vendor.c +++ b/hardinfo/vendor.c @@ -143,7 +143,7 @@ void vendor_init(void) DEBUG("initializing vendor list"); sync_manager_add_entry(&se); - path = g_build_filename(g_get_home_dir(), ".hardinfo", "vendor.conf", NULL); + path = g_build_filename(g_get_user_config_dir(), "hardinfo", "vendor.conf", NULL); if (!g_file_test(path, G_FILE_TEST_EXISTS)) { DEBUG("local vendor.conf not found, trying system-wise"); g_free(path); diff --git a/modules/benchmark.c b/modules/benchmark.c index 5f1dc0a5..0f5e7ea6 100644 --- a/modules/benchmark.c +++ b/modules/benchmark.c @@ -349,7 +349,7 @@ static gchar *__benchmark_include_results(bench_value r, conf = g_key_file_new(); - path = g_build_filename(g_get_home_dir(), ".hardinfo", "benchmark.conf", NULL); + path = g_build_filename(g_get_user_config_dir(), "hardinfo", "benchmark.conf", NULL); if (!g_file_test(path, G_FILE_TEST_EXISTS)) { DEBUG("local benchmark.conf not found, trying system-wide"); g_free(path); diff --git a/shell/syncmanager.c b/shell/syncmanager.c index db94d474..beb6b749 100644 --- a/shell/syncmanager.c +++ b/shell/syncmanager.c @@ -307,7 +307,7 @@ static void _action_call_function_got_response(SoupSession * session, if ((string = _soup_get_xmlrpc_value_string(msg, sna)) && sna->entry->save_to) { DEBUG("received string: %s\n", string); - gchar *filename = g_build_filename(g_get_home_dir(), ".hardinfo", + gchar *filename = g_build_filename(g_get_user_config_dir(), "hardinfo", sna->entry->save_to, NULL); DEBUG("saving to %s", filename); |