]> git.pld-linux.org Git - packages/elinks.git/blob - elinks-home_etc.patch
- updated for 0.11.4rc1
[packages/elinks.git] / elinks-home_etc.patch
1 diff -burN elinks-0.11.0.orig/doc/man/man1/elinks.1.in elinks-0.11.0/doc/man/man1/elinks.1.in
2 --- elinks-0.11.0.orig/doc/man/man1/elinks.1.in 2006-01-01 21:59:35.921524250 +0100
3 +++ elinks-0.11.0/doc/man/man1/elinks.1.in      2006-01-01 22:01:19.884021500 +0100
4 @@ -320,6 +320,12 @@
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 -burN elinks-0.11.0.orig/src/config/home.c elinks-0.11.0/src/config/home.c
18 --- elinks-0.11.0.orig/src/config/home.c        2006-01-01 21:59:35.845519500 +0100
19 +++ elinks-0.11.0/src/config/home.c     2006-01-01 22:00:36.489309500 +0100
20 @@ -109,7 +109,7 @@
21  get_home(void)
22  {
23         unsigned char *home_elinks;
24 -       unsigned char *envhome = getenv("HOME");
25 +       unsigned char *envhome = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv("HOME");
26         unsigned char *home = envhome ? stracpy(envhome)
27                                       : elinks_dirname(program.path);
28  
This page took 0.041463 seconds and 3 git commands to generate.