]> git.pld-linux.org Git - packages/htop.git/commitdiff
- added
authorromke <romke@pld-linux.org>
Thu, 9 Jun 2005 15:59:59 +0000 (15:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    htop-home_etc.patch -> 1.1

htop-home_etc.patch [new file with mode: 0644]

diff --git a/htop-home_etc.patch b/htop-home_etc.patch
new file mode 100644 (file)
index 0000000..b5dd271
--- /dev/null
@@ -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);
This page took 0.09083 seconds and 4 git commands to generate.