Commit 577d4857 authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

create config/data directories if they don't exist

parent 2c5eb04f
...@@ -87,6 +87,10 @@ zathura_init(int argc, char* argv[]) ...@@ -87,6 +87,10 @@ zathura_init(int argc, char* argv[])
g_free(path); 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) { if (plugin_path) {
gchar** paths = g_strsplit(plugin_path, ":", 0); gchar** paths = g_strsplit(plugin_path, ":", 0);
for (unsigned int i = 0; paths[i] != '\0'; ++i) { for (unsigned int i = 0; paths[i] != '\0'; ++i) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment