aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-init.c
blob: 34ccdbcfc38691a8fcecf95ceb5dae3981e8edfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * e-init.c: Initializes Evolution for first time users
 *
 */
#include <config.h>
#include <gnome.h>
#include "e-init.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include "e-util/e-gui-utils.h"

char *evolution_base_dir;

static void
e_init_local (void)
{
    evolution_base_dir = g_concat_dir_and_file (g_get_home_dir (), "Evolution");
    
    if (g_file_exists (evolution_base_dir))
        return;

    if (-1 == mkdir (evolution_base_dir, 0755)){
        e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("Evolution can not create its local folders"));
        exit (0);
    }
}

void
e_init (void)
{
    e_init_local ();
}
* - update png to 1.5.10dinoex2012-06-012-2/+18 * fix compilation with clangoliver2011-12-153-1/+425 * fix CLANG-buildoliver2011-12-091-5/+2 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-1/+2 * -remove MD5ohauer2011-07-031-1/+0 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-1/+1 * - update to 1.4.1dinoex2010-03-281-1/+2 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-2/+1 * update to 0.2.33oliver2008-09-072-4/+4 * update to 0.2.32oliver2008-08-282-4/+10 * update to 0.2.31oliver2008-07-312-5/+4 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1 * update libzvbi to 0.2.30oliver2008-03-073-6/+5 * fix pkg-plistoliver2008-03-011-1/+1 * update libzvbi to 0.2.29oliver2008-02-283-6/+6 * - Set --mandir and --infodir in CONFIGURE_ARGS if the configure scriptrafan2007-07-231-1/+0 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * update to 0.2.25oliver2007-03-102-4/+4 * update to 0.2.24oliver2006-12-052-4/+4 * update libzvbi to 0.2.23oliver2006-11-093-6/+7 * update libzvbi to 0.2.22oliver2006-06-023-5/+5 * update to 0.2.21oliver2006-05-162-4/+4 * update to 0.2.20oliver2006-05-092-4/+4 * Remove USE_REINPLACE from all categories starting with Dedwin2006-05-051-1/+0 * update to 0.2.19oliver2006-03-152-5/+5 * Conversion to a single libtool environment.ade2006-02-232-2/+2 * update to 0.2.18oliver2006-02-112-4/+4