create config/data directories if they don't exist

This commit is contained in:
Sebastian Ramacher 2011-10-03 17:19:55 +02:00
parent 2c5eb04f4f
commit 577d485747

View File

@ -87,6 +87,10 @@ zathura_init(int argc, char* argv[])
g_free(path);
}
/* create zathura (config/data) directory */
g_mkdir_with_parents(zathura->config.config_dir, 0771);
g_mkdir_with_parents(zathura->config.data_dir, 0771);
if (plugin_path) {
gchar** paths = g_strsplit(plugin_path, ":", 0);
for (unsigned int i = 0; paths[i] != '\0'; ++i) {