[nautilus-actions] Create the configuration directory if it doesn't exist yet



commit afa8bfc3d287ffe785931c9a094b3c17695af48b
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed May 18 00:03:37 2011 +0200

    Create the configuration directory if it doesn't exist yet

 src/core/na-settings.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/core/na-settings.c b/src/core/na-settings.c
index 57fe7f8..e9ce6cf 100644
--- a/src/core/na-settings.c
+++ b/src/core/na-settings.c
@@ -422,6 +422,7 @@ settings_new( void )
 		g_free( dir );
 
 		dir = g_build_filename( g_get_home_dir(), ".config", PACKAGE, NULL );
+		g_mkdir_with_parents( dir, 750 );
 		g_debug( "%s: reading user configuration", thisfn );
 		st_settings->private->user = key_file_new( dir );
 		g_free( dir );



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]