Commit 931fd9f6 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Only create data directory if not available

parent edea6a54
......@@ -131,11 +131,6 @@ create_directories(zathura_t* zathura)
{
static const unsigned int mode = 0700;
if (g_mkdir_with_parents(zathura->config.config_dir, mode) == -1) {
girara_error("Could not create '%s': %s", zathura->config.config_dir,
strerror(errno));
}
if (g_mkdir_with_parents(zathura->config.data_dir, mode) == -1) {
girara_error("Could not create '%s': %s", zathura->config.data_dir,
strerror(errno));
......@@ -424,7 +419,7 @@ zathura_init(zathura_t* zathura)
/* Set application ID */
g_set_prgname("org.pwmt.zathura");
/* create zathura (config/data) directory */
/* create zathura data directory */
create_directories(zathura);
/* load plugins */
......@@ -467,7 +462,6 @@ zathura_init(zathura_t* zathura)
/* disable unsupported features in strict sandbox mode */
if (zathura->global.sandbox != ZATHURA_SANDBOX_STRICT){
/* database */
init_database(zathura);
}
......
Markdown is supported
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