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 ();
}
pre-existing conf files exist inadamw2014-07-292-8/+5 * Support stagingehaupt2014-02-182-11/+14 * I mistake to create patch file. fixed to build.sanpei2013-10-271-2/+2 * fix build error 10-current and use ccsanpei2013-10-192-17/+17 * unbreak on 10-currentsanpei2013-09-221-0/+2 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-5/+2 * - Get Rid MD5 supportmiwi2011-03-20