Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
ac88923e
Commit
ac88923e
authored
Oct 05, 2012
by
Moritz Lipp
Browse files
Print error message if directory creation failed
parent
f82845a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura.c
View file @
ac88923e
...
...
@@ -3,6 +3,7 @@
#define _BSD_SOURCE
#define _XOPEN_SOURCE 700
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
...
...
@@ -95,8 +96,13 @@ zathura_init(zathura_t* zathura)
}
/* create zathura (config/data) directory */
g_mkdir_with_parents
(
zathura
->
config
.
config_dir
,
0771
);
g_mkdir_with_parents
(
zathura
->
config
.
data_dir
,
0771
);
if
(
g_mkdir_with_parents
(
zathura
->
config
.
config_dir
,
0771
)
==
-
1
)
{
girara_error
(
"Could not create '%s': %s"
,
zathura
->
config
.
config_dir
,
strerror
(
errno
));
}
if
(
g_mkdir_with_parents
(
zathura
->
config
.
data_dir
,
0771
)
==
-
1
)
{
girara_error
(
"Could not create '%s': %s"
,
zathura
->
config
.
data_dir
,
strerror
(
errno
));
}
/* load plugins */
zathura_plugin_manager_load
(
zathura
->
plugins
.
manager
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment