$NetBSD: patch-ad,v 1.8 2008/11/10 14:56:16 adam Exp $

--- src/gentoo.c.orig	2006-08-23 14:58:12.000000000 -0400
+++ src/gentoo.c	2008-08-17 01:44:41.000000000 -0400
@@ -334,7 +334,18 @@ static GtkWidget * build_gui(MainInfo *m
 static void init_paths(CfgInfo *cfg)
 {
 	cfg->path.path[PTID_ICON]  = g_string_new(PATH_ICN);
+#if 0
+	/* PATH_GRC is the compile-time $HOME, which seems wrong. */
 	cfg->path.path[PTID_GTKRC] = g_string_new(PATH_GRC);
+#else
+	{
+		const char *home = getenv("HOME");
+		if (home == NULL) {
+			home = "/";
+		}
+		cfg->path.path[PTID_GTKRC] = g_string_new(home);
+	}
+#endif
 	cfg->path.path[PTID_FSTAB] = g_string_new("/etc/fstab");
 	cfg->path.path[PTID_MTAB]  = g_string_new("/proc/mounts");
 
