]> git.pld-linux.org Git - packages/AfterStep10.git/commitdiff
- support for HOME_ETC
authorwitekfl <witekfl@pld-linux.org>
Thu, 27 Nov 2003 06:38:56 +0000 (06:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    AfterStep10-home_etc.patch -> 1.1

AfterStep10-home_etc.patch [new file with mode: 0644]

diff --git a/AfterStep10-home_etc.patch b/AfterStep10-home_etc.patch
new file mode 100644 (file)
index 0000000..163106d
--- /dev/null
@@ -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);
This page took 0.067548 seconds and 4 git commands to generate.