summaryrefslogtreecommitdiffstats
path: root/linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux.c')
-rw-r--r--linux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux.c b/linux.c
index d4131c7ea..6133c262d 100644
--- a/linux.c
+++ b/linux.c
@@ -3,6 +3,7 @@
#include "dive.h"
#include "display.h"
#include "membuffer.h"
+#include "qthelperfromc.h"
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
@@ -63,6 +64,8 @@ static const char *system_default_path_append(const char *append)
memset(buffer, 0, len);
strcat(buffer, home);
strcat(buffer, path);
+ // make sure this path exists
+ subsurface_mkdir(buffer);
if (append) {
strcat(buffer, "/");
strcat(buffer, append);