From a81942a48b8294c22b931c0a55d8e2b4cc20074c Mon Sep 17 00:00:00 2001 From: witekfl Date: Thu, 27 Nov 2003 06:38:56 +0000 Subject: [PATCH] - support for HOME_ETC Changed files: AfterStep10-home_etc.patch -> 1.1 --- AfterStep10-home_etc.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 AfterStep10-home_etc.patch diff --git a/AfterStep10-home_etc.patch b/AfterStep10-home_etc.patch new file mode 100644 index 0000000..163106d --- /dev/null +++ b/AfterStep10-home_etc.patch @@ -0,0 +1,19 @@ +--- AfterStep-1.0/afterstep/configure.c.orig Mon Sep 29 20:41:52 2003 ++++ AfterStep-1.0/afterstep/configure.c Mon Sep 29 20:44:20 2003 +@@ -459,6 +459,7 @@ + char *home_file; + char line[256],*tline; + char *Home; /* the HOME environment variable */ ++ char *home_etc = getenv("HOME_ETC"); + int HomeLen; /* length of Home */ + #ifdef ENABLE_TEXTURE + int icol, mcol, ucol, tcol, scol; /* texture colors */ +@@ -492,7 +493,7 @@ + Scr.DefaultIcon = NULL; + + /* find the home directory to look in */ +- Home = getenv("HOME"); ++ Home = home_etc ? home_etc : getenv("HOME"); + if (Home == NULL) + Home = "./"; + HomeLen = strlen(Home); -- 2.44.0