Failure of config file parsing is a hard failure

compton will now quit if it fails to parse the config file.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-02-13 02:04:05 +00:00
parent 7a21cef9a4
commit 60aa36b7af
4 changed files with 58 additions and 10 deletions

View File

@ -28,6 +28,7 @@
#include <ev.h>
#include "err.h"
#include "kernel.h"
#include "common.h"
#include "compiler.h"
@ -2737,6 +2738,10 @@ session_init(int argc, char **argv, Display *dpy, const char *config_file,
parse_config(&ps->o, config_file, &shadow_enabled,
&fading_enable, &hasneg, winopt_mask);
if (IS_ERR(config_file_to_free)) {
return NULL;
}
// Parse all of the rest command line options
get_cfg(&ps->o, argc, argv, shadow_enabled, fading_enable, hasneg, winopt_mask);