diff options
author | nobody <nobody@localhost> | 2000-02-18 02:02:38 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2000-02-18 02:02:38 +0800 |
commit | 801e6f456d73c70c8da6e7c0f75a4925869338f3 (patch) | |
tree | cb572e29de5b639380b2832a064d24484dc595eb /e-util/e-setup.c | |
parent | 788bcf6373185aa29f8e2f83ad48cb10bf6e8a9b (diff) | |
download | gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar.gz gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar.bz2 gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar.lz gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar.xz gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar.zst gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.zip |
This commit was manufactured by cvs2svn to create branch 'ebusboom'.
svn path=/branches/ebusboom/; revision=1824
Diffstat (limited to 'e-util/e-setup.c')
-rw-r--r-- | e-util/e-setup.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/e-util/e-setup.c b/e-util/e-setup.c deleted file mode 100644 index 20d9eee813..0000000000 --- a/e-util/e-setup.c +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Sets up the ~/evolution directory - * - * Author: - * Miguel de Icaza (miguel@kernel.org) - * - * (C) 2000 Helix Code, Inc. http://www.helixcode.com - */ -#include <config.h> -#include <sys/stat.h> -#include <unistd.h> -#include <gnome.h> -#include "e-setup.h" - -char *evolution_dir = NULL; -char *evolution_folders_dir = NULL; -char *evolution_private = NULL; -char *evolution_public = NULL; - -gboolean -e_setup_base_dir (void) -{ - struct stat s; - - evolution_dir = g_concat_dir_and_file (g_get_home_dir (), "evolution"); - - if (stat (evolution_dir, &s) == -1){ - if (mkdir (evolution_dir, 0600) == -1){ - return FALSE; - } - } else { - if (!S_ISDIR (s.st_mode)){ - char *msg; - - g_error ("Finish implementing this"); - - msg = g_strdup_printf ( - _("Evolution detected that the file `%s' is a not a directory.\n" - "\n" - "Evolution can rename the file, delete the file or shutdown and\n" - "let you fix the problem.")); - return FALSE; - } - } - - evolution_folders_dir = g_concat_dir_and_file (evolution_dir, "folders"); - mkdir (evolution_folders_dir, 0600); - - return TRUE; -} - |