aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-05-22 19:53:11 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-05-22 19:53:11 +0000
commitdc675c6943f796cbc073f18762c63f7f48e01f48 (patch)
tree6a8199cc89f51b9a844544470eaa7c2b468a386f /hardinfo2/shell.c
parent16881b84f74734b0982678003e54db95dc857296 (diff)
Hopefully the last binreloc bug has been squashed :)
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c8
1 files changed, 7 insertions, 1 deletions
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");
}