7b4ab23610
note: this now uses GTK3. 0.20.7 * Fixed bug that prevented setting the colors for a command button's secondary (right-click) function. Reported by RickTee. * Tiny rewrite to how list entries are stored when reading directories which on my system improved speed by around 30X. Suggested by RickTee. * Updated the GNU gettext machinery. Now requires gettext on your system to support internationalization, instead of including the code in a intl/ subdir in gentoo's code. Makes sense? * Fixed a bug that made gentoo's progress-reporting dialogs lack a parent window, whch in turn made GTK+ emit warnings.
20 lines
648 B
C
20 lines
648 B
C
$NetBSD: patch-src_gentoo.c,v 1.1 2019/09/04 17:35:45 nia Exp $
|
|
|
|
Avoid embedding home directory references in the binary.
|
|
|
|
--- src/gentoo.c.orig 2016-02-07 11:53:06.000000000 +0000
|
|
+++ src/gentoo.c
|
|
@@ -297,7 +297,12 @@ static void init_paths(CfgInfo *cfg)
|
|
g_string_append(cfg->path.path[PTID_GTKRC], G_DIR_SEPARATOR_S PACKAGE);
|
|
}
|
|
else
|
|
- cfg->path.path[PTID_GTKRC] = g_string_new(PATH_GRC);
|
|
+ {
|
|
+ char *home = getenv("HOME");
|
|
+ if(home == NULL)
|
|
+ home = "/";
|
|
+ cfg->path.path[PTID_GTKRC] = g_string_new(home);
|
|
+ }
|
|
cfg->path.path[PTID_FSTAB] = g_string_new("/etc/fstab");
|
|
cfg->path.path[PTID_MTAB] = g_string_new("/proc/mounts");
|
|
|