From 69a6f98acdc9bd8970944ada986a9c303f72540f Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sun, 29 Apr 2012 16:05:28 +0200 Subject: fix configuration folder creation, thanks to gapan --- mate-dictionary/src/gdict-common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mate-dictionary/src/gdict-common.c b/mate-dictionary/src/gdict-common.c index bdab8224..a0ec01b2 100644 --- a/mate-dictionary/src/gdict-common.c +++ b/mate-dictionary/src/gdict-common.c @@ -45,7 +45,7 @@ gdict_get_data_dir (void) gchar *retval; retval = g_build_filename (g_get_user_config_dir (), - ".mate", + "mate", "mate-dictionary", NULL); @@ -59,7 +59,7 @@ gdict_create_data_dir (void) gchar *data_dir_name; data_dir_name = gdict_get_data_dir (); - if (g_mkdir (data_dir_name, 0700) == -1) + if (g_mkdir_with_parents (data_dir_name, 0700) == -1) { /* this is weird, but sometimes there's a "mate-dictionary" file * inside $HOME/.mate2; see bug #329126. @@ -93,7 +93,7 @@ gdict_create_data_dir (void) g_free (backup); - if (g_mkdir (data_dir_name, 0700) == -1) + if (g_mkdir_with_parents (data_dir_name, 0700) == -1) { GtkWidget *error_dialog; -- cgit v1.2.1