Skip to content

Commit

Permalink
Merge pull request #65 from m-r-r/master
Browse files Browse the repository at this point in the history
Fallback on the system configuration file
  • Loading branch information
xorg62 committed Jul 2, 2012
2 parents 67ec2d4 + 289c920 commit 6d5ffbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/config.c
Expand Up @@ -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();
Expand Down

0 comments on commit 6d5ffbe

Please sign in to comment.