]> git.pld-linux.org Git - packages/awesfx.git/commitdiff
- CONFIG_DIR support
authorjuandon <witekfl@pld-linux.org>
Sun, 23 Mar 2003 17:12:41 +0000 (17:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    awesfx-home_etc.patch -> 1.1

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

diff --git a/awesfx-home_etc.patch b/awesfx-home_etc.patch
new file mode 100644 (file)
index 0000000..661c774
--- /dev/null
@@ -0,0 +1,26 @@
+diff -Nru awesfx-0.4.4/awelib/config.h awesfx-0.4.4.new/awelib/config.h
+--- awesfx-0.4.4/awelib/config.h       Wed May 31 13:03:30 2000
++++ awesfx-0.4.4.new/awelib/config.h   Sun Mar 23 14:15:42 2003
+@@ -20,6 +20,7 @@
+ /* rc file & command line options */
+ #define SYSTEM_RCFILE         "/etc/sfxloadrc"
+ #define RCFILE                        ".sfxloadrc"
++#define CONFIG_DIR_RCFILE "sfxloadrc"
+ /* big endian machine defines this */
+ #undef BUILD_BIG_ENDIAN
+diff -Nru awesfx-0.4.4/awelib/optfile.c awesfx-0.4.4.new/awelib/optfile.c
+--- awesfx-0.4.4/awelib/optfile.c      Thu Apr 27 13:45:31 2000
++++ awesfx-0.4.4.new/awelib/optfile.c  Sun Mar 23 14:17:31 2003
+@@ -47,6 +47,11 @@
+       OptionFile *rec;
+       *rcfile = 0;
++      if ((p = getenv("CONFIG_DIR")) != NULL && *p) {
++              sprintf(rcfile, "%s/%s", p, CONFIG_DIR_RCFILE);
++              if (access(rcfile, R_OK) != 0)
++                      rcfile[0] = 0;
++      } else
+       if ((p = getenv("HOME")) != NULL && *p) {
+               sprintf(rcfile, "%s/%s", p, RCFILE);
+               if (access(rcfile, R_OK) != 0)
This page took 0.062577 seconds and 4 git commands to generate.