From 5444e34b58c48498765286aa4e4d34811e0dcdd7 Mon Sep 17 00:00:00 2001 From: romke Date: Thu, 9 Jun 2005 15:59:59 +0000 Subject: [PATCH] - added Changed files: htop-home_etc.patch -> 1.1 --- htop-home_etc.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 htop-home_etc.patch diff --git a/htop-home_etc.patch b/htop-home_etc.patch new file mode 100644 index 0000000..b5dd271 --- /dev/null +++ b/htop-home_etc.patch @@ -0,0 +1,13 @@ +--- htop-0.5.2/Settings.c~ 2005-04-09 00:41:32.000000000 +0200 ++++ htop-0.5.2/Settings.c 2005-06-08 04:42:24.000000000 +0200 +@@ -29,7 +29,9 @@ + // TODO: how to get SYSCONFDIR correctly through Autoconf? + // char* systemSettings = String_cat(SYSCONFDIR, "/htoprc"); + // Settings_read(this, systemSettings); +- char* home = getenv("HOME"); ++ char* home; ++ home = getenv("HOME_ETC"); ++ if (!home) home = getenv("HOME"); + this->userSettings = String_cat(home, "/.htoprc"); + Settings_read(this, this->userSettings); + // free(systemSettings); -- 2.44.0