]> git.pld-linux.org Git - packages/awesfx.git/blame - awesfx-etc_dir.patch
- s/ETC_DIR/HOME_ETC/, leave dots
[packages/awesfx.git] / awesfx-etc_dir.patch
CommitLineData
f90514cd 1diff -Nru awesfx-0.4.4/awelib/config.h awesfx-0.4.4.new/awelib/config.h
2--- awesfx-0.4.4/awelib/config.h Wed May 31 13:03:30 2000
3+++ awesfx-0.4.4.new/awelib/config.h Sun Mar 23 14:15:42 2003
4@@ -20,6 +20,7 @@
5 /* rc file & command line options */
6 #define SYSTEM_RCFILE "/etc/sfxloadrc"
7 #define RCFILE ".sfxloadrc"
506bff59 8+#define ETC_DIR_RCFILE ".sfxloadrc"
f90514cd 9
10 /* big endian machine defines this */
11 #undef BUILD_BIG_ENDIAN
12diff -Nru awesfx-0.4.4/awelib/optfile.c awesfx-0.4.4.new/awelib/optfile.c
13--- awesfx-0.4.4/awelib/optfile.c Thu Apr 27 13:45:31 2000
14+++ awesfx-0.4.4.new/awelib/optfile.c Sun Mar 23 14:17:31 2003
15@@ -47,6 +47,11 @@
16 OptionFile *rec;
17
18 *rcfile = 0;
506bff59 19+ if ((p = getenv("HOME_ETC")) != NULL && *p) {
f90514cd 20+ sprintf(rcfile, "%s/%s", p, ETC_DIR_RCFILE);
21+ if (access(rcfile, R_OK) != 0)
22+ rcfile[0] = 0;
23+ } else
24 if ((p = getenv("HOME")) != NULL && *p) {
25 sprintf(rcfile, "%s/%s", p, RCFILE);
26 if (access(rcfile, R_OK) != 0)
This page took 0.096834 seconds and 4 git commands to generate.