]> git.pld-linux.org Git - packages/elinks.git/blame - elinks-home_etc.patch
- note to previous changelog entry
[packages/elinks.git] / elinks-home_etc.patch
CommitLineData
03fc70be
AG
1diff -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@@ -235,6 +235,11 @@
5 The path to the users home directory\&. Used when expanding ~/\&.
6
7 .TP
8+HOME_ETC
9+If set the location of the directory containing configuration files
10+is \fI$HOME_ETC/.elinks/\fR instead of \fI~/.elinks/\fR.
11+
12+.TP
13 WWW_HOME
14 Homepage location (as in lynx(1))
15
16diff -burN elinks-0.11.0.orig/src/config/home.c elinks-0.11.0/src/config/home.c
17--- elinks-0.11.0.orig/src/config/home.c 2006-01-01 21:59:35.845519500 +0100
18+++ elinks-0.11.0/src/config/home.c 2006-01-01 22:00:36.489309500 +0100
b228e3a4 19@@ -109,7 +109,7 @@
20 get_home(void)
21 {
22 unsigned char *home_elinks;
23- unsigned char *envhome = getenv("HOME");
24+ unsigned char *envhome = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv("HOME");
25 unsigned char *home = envhome ? stracpy(envhome)
03fc70be 26 : elinks_dirname(program.path);
b228e3a4 27
This page took 0.057836 seconds and 4 git commands to generate.