Fix regression in cli handling

This commit is contained in:
o9000 2017-09-01 18:02:35 +02:00
parent ceb6a44238
commit 120207f1f9
2 changed files with 3 additions and 1 deletions

View file

@ -1300,6 +1300,8 @@ void add_entry(char *key, char *value)
gboolean config_read_file(const char *path)
{
fprintf(stderr, "Loading config file: %s\n", path);
FILE *fp = fopen(path, "r");
if (!fp)
return FALSE;

View file

@ -133,7 +133,6 @@ void start_detect_compositor()
void create_default_elements()
{
default_config();
default_timeout();
default_systray();
memset(&server, 0, sizeof(server));
@ -212,6 +211,7 @@ void init(int argc, char **argv)
{
setlinebuf(stdout);
setlinebuf(stderr);
default_config();
handle_cli_arguments(argc, argv);
create_default_elements();
init_signals();