]> git.pld-linux.org Git - packages/elinks.git/blob - elinks-home_etc.patch
rebuild with openssl 3.0.0
[packages/elinks.git] / elinks-home_etc.patch
1 diff -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  ~/\&.
6  .RE
7  .PP
8 +HOME_ETC
9 +.RS 4
10 +If set the location of the directory containing configuration files
11 +is \fI$HOME_ETC/.elinks/\fR instead of \fI~/.elinks/\fR.
12 +.RE
13 +.PP
14  WWW_HOME
15  .RS 4
16  Homepage location (as in
17 diff -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
20 @@ -110,7 +110,8 @@ static unsigned char *
21  get_home(void)
22  {
23         unsigned char *home_elinks;
24 -       unsigned char *envhome = getenv("HOME");
25 +       unsigned char *home_etc = getenv("HOME_ETC");
26 +       unsigned char *envhome = home_etc ? home_etc : getenv("HOME");
27         unsigned char *home = NULL;
28  
29         if (!home && envhome)
This page took 0.028967 seconds and 3 git commands to generate.