From dc675c6943f796cbc073f18762c63f7f48e01f48 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Mon, 22 May 2006 19:53:11 +0000 Subject: Hopefully the last binreloc bug has been squashed :) --- hardinfo2/shell.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hardinfo2/shell.c') diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 90e5722f..66d83cf9 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -299,11 +299,17 @@ create_window(void) static void shell_tree_modules_load(ShellTree * shelltree) { + gchar *modules_conf; GKeyFile *keyfile = g_key_file_new(); guint categories, i; keyfile = g_key_file_new(); - g_key_file_load_from_file(keyfile, PREFIX "modules.conf", 0, NULL); + + modules_conf = g_strdup_printf("%s/hardinfo/modules.conf", + gbr_find_data_dir(PREFIX)); + g_key_file_load_from_file(keyfile, modules_conf, 0, NULL); + g_free(modules_conf); + if (g_key_file_get_integer(keyfile, "general", "version", NULL) != 2) { g_error("Wrong version of modules.conf"); } -- cgit v1.2.3