Add process to make parent dir if isn't

This commit is contained in:
jun7 2018-05-20 01:28:17 +09:00
parent 0377be5f81
commit f73a4bb453
2 changed files with 8 additions and 3 deletions

View File

@ -1029,6 +1029,11 @@ static void init()
gchar *path = g_build_filename(
g_get_user_config_dir(), APPNAME, "easylist.txt", NULL);
char *dir = g_path_get_dirname(path);
if (!g_file_test(dir, G_FILE_TEST_EXISTS))
g_mkdir_with_parents(dir, 0700);
g_free(dir);
GFile *gf = g_file_new_for_path(path);
GFileMonitor *gm = g_file_monitor_file(gf,
G_FILE_MONITOR_NONE, NULL, NULL);

View File

@ -1,4 +1,4 @@
#CFLAGS += -c -Wall -Wno-deprecated-declarations
#CFLAGS += -Wall -Wno-deprecated-declarations
CFLAGS += -Wno-deprecated-declarations
#LDFLAGS=
EXTENSION_DIR=$(DESTDIR)/usr/lib/wyebrowser