]> git.pld-linux.org Git - packages/elinks.git/blame - elinks-home_etc.patch
- rediff patches
[packages/elinks.git] / elinks-home_etc.patch
CommitLineData
9798e932
JR
1diff -urNp -x '*.orig' elinks-0.13-20180901.org/doc/man/man1/elinks.1.in elinks-0.13-20180901/doc/man/man1/elinks.1.in
2--- elinks-0.13-20180901.org/doc/man/man1/elinks.1.in 2017-07-23 19:50:15.000000000 +0200
3+++ elinks-0.13-20180901/doc/man/man1/elinks.1.in 2021-05-07 22:58:22.368520341 +0200
4@@ -322,6 +322,12 @@ The path to the users home directory\&.
5 ~/\&.
bcd50ff0 6 .RE
7 .PP
03fc70be 8+HOME_ETC
bcd50ff0 9+.RS 4
03fc70be
AG
10+If set the location of the directory containing configuration files
11+is \fI$HOME_ETC/.elinks/\fR instead of \fI~/.elinks/\fR.
bcd50ff0 12+.RE
13+.PP
03fc70be 14 WWW_HOME
bcd50ff0 15 .RS 4
16 Homepage location (as in
9798e932
JR
17diff -urNp -x '*.orig' elinks-0.13-20180901.org/src/config/home.c elinks-0.13-20180901/src/config/home.c
18--- elinks-0.13-20180901.org/src/config/home.c 2017-07-23 19:50:15.000000000 +0200
19+++ elinks-0.13-20180901/src/config/home.c 2021-05-07 22:58:22.368520341 +0200
2c1bedc9 20@@ -110,7 +110,8 @@ static unsigned char *
b228e3a4 21 get_home(void)
22 {
23 unsigned char *home_elinks;
24- unsigned char *envhome = getenv("HOME");
2c1bedc9 25+ unsigned char *home_etc = getenv("HOME_ETC");
26+ unsigned char *envhome = home_etc ? home_etc : getenv("HOME");
27 unsigned char *home = NULL;
b228e3a4 28
2c1bedc9 29 if (!home && envhome)
This page took 0.07103 seconds and 4 git commands to generate.