aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-setup.c
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-04-07 00:45:54 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-04-07 00:45:54 +0800
commiteb9e77424615f640c32913696d9e8b0c7a0c3249 (patch)
treeaad8ffd5ed64976721a25b780ef2091557995271 /e-util/e-setup.c
parentdd9e79deb96759ea6f36c0749085518cc62d61b7 (diff)
downloadgsoc2013-evolution-eb9e77424615f640c32913696d9e8b0c7a0c3249.tar
gsoc2013-evolution-eb9e77424615f640c32913696d9e8b0c7a0c3249.tar.gz
gsoc2013-evolution-eb9e77424615f640c32913696d9e8b0c7a0c3249.tar.bz2
gsoc2013-evolution-eb9e77424615f640c32913696d9e8b0c7a0c3249.tar.lz
gsoc2013-evolution-eb9e77424615f640c32913696d9e8b0c7a0c3249.tar.xz
gsoc2013-evolution-eb9e77424615f640c32913696d9e8b0c7a0c3249.tar.zst
gsoc2013-evolution-eb9e77424615f640c32913696d9e8b0c7a0c3249.zip
+ * shell/main.c (evolution_boot): Make sure our data directory is
+ available with e_setup_base_dir (). + + * e-setup.c (e_setup_base_dir): Get/set Evolution's base directory + via gnome-config. svn path=/trunk/; revision=2309
Diffstat (limited to 'e-util/e-setup.c')
-rw-r--r--e-util/e-setup.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/e-util/e-setup.c b/e-util/e-setup.c
index 63d376d310..ba9d483ac2 100644
--- a/e-util/e-setup.c
+++ b/e-util/e-setup.c
@@ -21,9 +21,12 @@ gboolean
e_setup_base_dir (void)
{
struct stat s;
+
+ evolution_dir = gnome_config_get_string("/Evolution/directories/home");
- evolution_dir = g_concat_dir_and_file (g_get_home_dir (), "evolution");
-
+ if (!evolution_dir) evolution_dir =
+ g_concat_dir_and_file (g_get_home_dir (), "evolution");
+
if (stat (evolution_dir, &s) == -1){
if (mkdir (evolution_dir, S_IRWXU) == -1){
return FALSE;
@@ -46,6 +49,9 @@ e_setup_base_dir (void)
evolution_folders_dir = g_concat_dir_and_file (evolution_dir, "folders");
mkdir (evolution_folders_dir, S_IRWXU);
+ gnome_config_set_string ("/Evolution/directories/home",
+ evolution_dir);
+ gnome_config_sync();
return TRUE;
}