]> git.pld-linux.org Git - packages/elinks.git/blobdiff - elinks-home_etc.patch
- support for $HOME_ETC
[packages/elinks.git] / elinks-home_etc.patch
diff --git a/elinks-home_etc.patch b/elinks-home_etc.patch
new file mode 100644 (file)
index 0000000..6dec6dc
--- /dev/null
@@ -0,0 +1,24 @@
+--- elinks.orig/src/lowlevel/home.c    Sun Oct  5 07:51:20 2003
++++ elinks/src/lowlevel/home.c Sun Oct  5 12:25:50 2003
+@@ -109,7 +109,7 @@
+ get_home(void)
+ {
+       unsigned char *home_elinks;
+-      unsigned char *envhome = getenv("HOME");
++      unsigned char *envhome = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv("HOME");
+       unsigned char *home = envhome ? stracpy(envhome)
+                                     : elinks_dirname(path_to_exe);
+--- elinks/doc/man/man1/elinks.1.in.orig       Thu Oct 23 13:07:37 2003
++++ elinks/doc/man/man1/elinks.1.in    Thu Oct 23 13:12:03 2003
+@@ -127,6 +127,10 @@
+ The location of the directory containing configuration files.
+ If not set the default is \fI~/.elinks/\fR.
+ .TP
++\fB HOME_ETC \fR
++If set the location of the directory containing configuration files
++is \fI$HOME_ETC/.elinks/\fR instead of \fI~/.elinks/\fR.
++.TP
+ \fB WWW_HOME \fR
+ Homepage location (as in \fBlynx(1)\fR)
+ .TP
This page took 0.031632 seconds and 4 git commands to generate.