]> git.pld-linux.org Git - packages/awesfx.git/blame - awesfx-home_etc.patch
- Typo
[packages/awesfx.git] / awesfx-home_etc.patch
CommitLineData
eeefd317 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"
8+#define CONFIG_DIR_RCFILE "sfxloadrc"
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;
19+ if ((p = getenv("CONFIG_DIR")) != NULL && *p) {
20+ sprintf(rcfile, "%s/%s", p, CONFIG_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.10269 seconds and 4 git commands to generate.