]> git.pld-linux.org Git - packages/htop.git/blame - htop-home_etc.patch
- updated to 0.5.3
[packages/htop.git] / htop-home_etc.patch
CommitLineData
5444e34b 1--- htop-0.5.2/Settings.c~ 2005-04-09 00:41:32.000000000 +0200
2+++ htop-0.5.2/Settings.c 2005-06-08 04:42:24.000000000 +0200
3@@ -29,7 +29,9 @@
4 // TODO: how to get SYSCONFDIR correctly through Autoconf?
5 // char* systemSettings = String_cat(SYSCONFDIR, "/htoprc");
6 // Settings_read(this, systemSettings);
7- char* home = getenv("HOME");
8+ char* home;
9+ home = getenv("HOME_ETC");
10+ if (!home) home = getenv("HOME");
11 this->userSettings = String_cat(home, "/.htoprc");
12 Settings_read(this, this->userSettings);
13 // free(systemSettings);
This page took 0.591017 seconds and 4 git commands to generate.