summaryrefslogtreecommitdiff
path: root/mate-dictionary
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-04-29 16:05:28 +0200
committerStefano Karapetsas <[email protected]>2012-04-29 16:05:28 +0200
commit69a6f98acdc9bd8970944ada986a9c303f72540f (patch)
tree6b3ff21184356744d8c2d54796e55289a0a4dd2b /mate-dictionary
parentc41cfe676bafbded92d3c4b914abcfa4d4443641 (diff)
downloadmate-utils-69a6f98acdc9bd8970944ada986a9c303f72540f.tar.bz2
mate-utils-69a6f98acdc9bd8970944ada986a9c303f72540f.tar.xz
fix configuration folder creation, thanks to gapan
Diffstat (limited to 'mate-dictionary')
-rw-r--r--mate-dictionary/src/gdict-common.c6
1 files 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;