[evolution-data-server] Create the configdir instead of bailing out if it does not exist
- From: Fridrich Strba <strba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Create the configdir instead of bailing out if it does not exist
- Date: Mon, 31 May 2010 11:05:29 +0000 (UTC)
commit 3e78b5cee6172daa37f8e02c2edc8d295f670361
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date: Mon May 31 13:04:24 2010 +0200
Create the configdir instead of bailing out if it does not exist
camel/camel.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel.c b/camel/camel.c
index b5d19b7..c1da6fb 100644
--- a/camel/camel.c
+++ b/camel/camel.c
@@ -94,6 +94,10 @@ camel_init (const gchar *configdir, gboolean nss_init)
nss_configdir = g_win32_locale_filename_from_utf8 (configdir);
#endif
+ /* Create the configdir if it does not exist
+ * This prevents camel from bailing out on first run */
+ g_mkdir_with_parents (configdir, 0700);
+
/* XXX Currently we store the new shared NSS database in the
* same location we kept the original NSS databases in,
* but at least we have safe shared access between Camel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]