]>
Commit | Line | Data |
---|---|---|
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); |