Work better without a config file

This commit is contained in:
o9000 2016-01-03 15:11:41 +01:00
parent 6fc608f099
commit 69f6f65db6

View file

@ -1147,6 +1147,7 @@ gboolean config_read_default_path()
}
// generate empty config file
fprintf(stderr, "tint2 warning: could not find a config file!\n");
gchar *dir = g_build_filename(g_get_user_config_dir(), "tint2", NULL);
if (!g_file_test(dir, G_FILE_TEST_IS_DIR))
g_mkdir(dir, 0700);