]>
Commit | Line | Data |
---|---|---|
2c1bedc9 | 1 | --- elinks-0.12pre1/doc/man/man1/elinks.1.in.old 2008-07-01 02:11:44.000000000 +0200 |
2 | +++ elinks-0.12pre1/doc/man/man1/elinks.1.in 2008-07-01 18:36:50.000000000 +0200 | |
3 | @@ -315,6 +315,12 @@ The path to the users home directory. Us | |
bcd50ff0 | 4 | ~/. |
5 | .RE | |
6 | .PP | |
03fc70be | 7 | +HOME_ETC |
bcd50ff0 | 8 | +.RS 4 |
03fc70be AG |
9 | +If set the location of the directory containing configuration files |
10 | +is \fI$HOME_ETC/.elinks/\fR instead of \fI~/.elinks/\fR. | |
bcd50ff0 | 11 | +.RE |
12 | +.PP | |
03fc70be | 13 | WWW_HOME |
bcd50ff0 | 14 | .RS 4 |
15 | Homepage location (as in | |
2c1bedc9 | 16 | --- elinks-0.12pre1/src/config/home.c.old 2008-07-01 02:11:44.000000000 +0200 |
17 | +++ elinks-0.12pre1/src/config/home.c 2008-07-01 18:41:01.000000000 +0200 | |
18 | @@ -110,7 +110,8 @@ static unsigned char * | |
b228e3a4 | 19 | get_home(void) |
20 | { | |
21 | unsigned char *home_elinks; | |
22 | - unsigned char *envhome = getenv("HOME"); | |
2c1bedc9 | 23 | + unsigned char *home_etc = getenv("HOME_ETC"); |
24 | + unsigned char *envhome = home_etc ? home_etc : getenv("HOME"); | |
25 | unsigned char *home = NULL; | |
b228e3a4 | 26 | |
2c1bedc9 | 27 | if (!home && envhome) |