[Xfce4-commits] <midori:master> Create as needed when opening user addon target folder
Christian Dywan
noreply at xfce.org
Tue May 22 00:04:01 CEST 2012
Updating branch refs/heads/master
to 5cd78ae297912af2a3974aa0917a80a775a885c5 (commit)
from 7fad1fedf745a8b82a70851f7392823e1f1af32c (commit)
commit 5cd78ae297912af2a3974aa0917a80a775a885c5
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Mon May 21 23:07:31 2012 +0200
Create as needed when opening user addon target folder
extensions/addons.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/extensions/addons.c b/extensions/addons.c
index 7c566f4..edf5339 100644
--- a/extensions/addons.c
+++ b/extensions/addons.c
@@ -522,10 +522,16 @@ addons_open_target_folder_clicked_cb (GtkWidget* toolitem,
folder = g_path_get_dirname (element->fullpath);
}
else
+ {
folder = g_build_path (G_DIR_SEPARATOR_S, g_get_user_data_dir (),
PACKAGE_NAME,
addons->kind == ADDONS_USER_SCRIPTS
? "scripts" : "styles", NULL);
+
+ if (!g_file_test (folder, G_FILE_TEST_EXISTS))
+ katze_mkdir_with_parents (folder, 0700);
+ }
+
folder_uri = g_filename_to_uri (folder, NULL, NULL);
g_free (folder);
More information about the Xfce4-commits
mailing list