diff options
author | Martin Duquesnoy <xorg62@gmail.com> | 2012-07-02 05:34:35 -0700 |
---|---|---|
committer | Martin Duquesnoy <xorg62@gmail.com> | 2012-07-02 05:34:35 -0700 |
commit | 6d5ffbe33f7514d2e0d7cc447bdd257a8aaeeb2b (patch) | |
tree | c7c63e8b01ee5e3d94a9bb0c344136cf99db37f1 | |
parent | 67ec2d4c2bc3a99f6c9d56f672e01c9ea7d24b07 (diff) | |
parent | 289c920fc5a2344aad42980a242ed18e15b24793 (diff) | |
download | wmfs-6d5ffbe33f7514d2e0d7cc447bdd257a8aaeeb2b.zip wmfs-6d5ffbe33f7514d2e0d7cc447bdd257a8aaeeb2b.tar.gz wmfs-6d5ffbe33f7514d2e0d7cc447bdd257a8aaeeb2b.tar.bz2 |
Merge pull request #65 from m-r-r/master
Fallback on the system configuration file
-rw-r--r-- | src/config.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 40a3610..5fe9815 100644 --- a/src/config.c +++ b/src/config.c @@ -401,7 +401,13 @@ config_init(void) sprintf(W->confpath, "%s/"CONFIG_DEFAULT_PATH, getenv("HOME")); if(get_conf(W->confpath) == -1) - errxl(1, "parsing default configuration file (%s) failed.", W->confpath); + { + warnxl("parsing default configuration file (%s) failed.", W->confpath); + sprintf(W->confpath, "%s/wmfs/wmfsrc", XDG_CONFIG_DIR); + + if(get_conf(W->confpath) == -1) + errxl(1, "parsing system configuration file (%s) failed.", W->confpath); + } } config_theme(); |