1 diff -Nru abiword-2.0.1.orig/abi/src/af/xap/unix/xap_UnixApp.cpp abiword-2.0.1/abi/src/af/xap/unix/xap_UnixApp.cpp
2 --- abiword-2.0.1.orig/abi/src/af/xap/unix/xap_UnixApp.cpp 2003-06-07 18:28:14.000000000 +0200
3 +++ abiword-2.0.1/abi/src/af/xap/unix/xap_UnixApp.cpp 2003-11-14 09:12:37.000000000 +0100
5 static char buf[PATH_MAX];
6 memset(buf,0,sizeof(buf));
8 - char * szHome = getenv("HOME");
9 + char * szHome = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv("HOME");
10 if (!szHome || !*szHome)
13 diff -Nru abiword-2.0.1.orig/abi/src/wp/ap/unix/ap_UnixApp.cpp abiword-2.0.1/abi/src/wp/ap/unix/ap_UnixApp.cpp
14 --- abiword-2.0.1.orig/abi/src/wp/ap/unix/ap_UnixApp.cpp 2003-10-10 15:35:35.000000000 +0200
15 +++ abiword-2.0.1/abi/src/wp/ap/unix/ap_UnixApp.cpp 2003-11-14 09:14:05.000000000 +0100
17 static char buf[PATH_MAX];
18 memset(buf,0,sizeof(buf));
20 - char * szHome = getenv("HOME");
21 + char * szHome = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv("HOME");
22 if (!szHome || !*szHome)
25 --- abiword-2.0.1.orig/abi/src/other/pango/pango/mini-xft/minixftcfg.c 2002-05-12 21:12:49.000000000 +0200
26 +++ abiword-2.0.1/abi/src/other/pango/pango/mini-xft/minixftcfg.c 2003-11-14 09:50:19.000000000 +0100
31 - h = getenv ("HOME");
32 + h = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv ("HOME");
35 dir = (char *) malloc (strlen (h) + strlen (d));
40 - h = getenv ("HOME");
41 + h = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv ("HOME");
44 new = (char *) malloc (strlen (h) + strlen (c));
45 --- abiword-2.0.1.orig/abi/src/other/pango/pango/mini-xft/minixftlex.l 2002-05-12 21:12:55.000000000 +0200
46 +++ abiword-2.0.1/abi/src/other/pango/pango/mini-xft/minixftlex.l 2003-11-14 09:51:17.000000000 +0100
51 - h = getenv ("HOME");
52 + h = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv ("HOME");
55 t = (char *) malloc (strlen (h) + strlen (s));
56 --- abiword-2.0.1.orig/popt/poptconfig.c 2002-11-11 03:00:51.000000000 +0100
57 +++ abiword-2.0.1/popt/poptconfig.c 2003-11-14 09:55:31.000000000 +0100
62 - if ((home = getenv("HOME"))) {
63 + home = getenv("HOME_ETC");
64 + if (!home) home = getenv("HOME");
66 fn = alloca(strlen(home) + 20);