mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 23:44:55 +01:00
create config/data directories if they don't exist
This commit is contained in:
parent
2c5eb04f4f
commit
577d485747
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue