]> git.pld-linux.org Git - packages/abiword.git/blob - abiword-home_etc.patch
- release 2
[packages/abiword.git] / abiword-home_etc.patch
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
4 @@ -176,7 +176,7 @@
5         static char buf[PATH_MAX];
6         memset(buf,0,sizeof(buf));
7         
8 -       char * szHome = getenv("HOME");
9 +       char * szHome = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv("HOME");
10         if (!szHome || !*szHome)
11                 szHome = "./";
12         
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
16 @@ -1099,7 +1099,7 @@
17         static char buf[PATH_MAX];
18         memset(buf,0,sizeof(buf));
19         
20 -       char * szHome = getenv("HOME");
21 +       char * szHome = getenv("HOME_ETC") ? getenv("HOME_ETC") : getenv("HOME");
22         if (!szHome || !*szHome)
23                 szHome = "./";
24         
25 --- abiword-2.0.1.orig/popt/poptconfig.c        2002-11-11 03:00:51.000000000 +0100
26 +++ abiword-2.0.1/popt/poptconfig.c     2003-11-14 09:55:31.000000000 +0100
27 @@ -144,7 +144,9 @@
28      }
29  #endif
30  
31 -    if ((home = getenv("HOME"))) {
32 +       home = getenv("HOME_ETC");
33 +       if (!home) home = getenv("HOME");
34 +    if (home) {
35         fn = alloca(strlen(home) + 20);
36         strcpy(fn, home);
37         strcat(fn, "/.popt");
This page took 0.04301 seconds and 3 git commands to generate.