]> git.pld-linux.org Git - packages/htop.git/blob - htop-home_etc.patch
- added
[packages/htop.git] / htop-home_etc.patch
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.030062 seconds and 3 git commands to generate.