From 06b0d18501c7e25c8d22fa53a9cd5f381334fc44 Mon Sep 17 00:00:00 2001 From: TotalCaesar659 Date: Mon, 28 May 2018 01:11:16 +0300 Subject: Moving configuration files to user's configuration folder Build the configuration file path using g_get_user_config_dir() instead of g_get_home_dir(). --- modules/benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/benchmark.c') 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); -- cgit v1.2.3