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