aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-mktemp.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-07-09 04:59:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-09 04:59:11 +0800
commitf92b45d7df69c958bb4fc606831bc51ee2bcc914 (patch)
tree704ffb1fe55bb37673436695c2d4e49efab8e7b4 /e-util/e-mktemp.c
parentae4e6007efece29bf587f3193e7c57ad7f7d81dc (diff)
downloadgsoc2013-evolution-f92b45d7df69c958bb4fc606831bc51ee2bcc914.tar.gz
gsoc2013-evolution-f92b45d7df69c958bb4fc606831bc51ee2bcc914.tar.zst
gsoc2013-evolution-f92b45d7df69c958bb4fc606831bc51ee2bcc914.zip
Fix places where "~/.evolution" is hard-coded.
Also replace "$USER_DATA_DIR/cache" path constructions with e_get_user_cache_dir().
Diffstat (limited to 'e-util/e-mktemp.c')
-rw-r--r--e-util/e-mktemp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/e-util/e-mktemp.c b/e-util/e-mktemp.c
index e53ea60b69..064c01997a 100644
--- a/e-util/e-mktemp.c
+++ b/e-util/e-mktemp.c
@@ -36,7 +36,6 @@
#include <stdio.h>
#include <time.h>
-#include <libedataserver/e-data-server-util.h>
#include "e-util.h"
#include "e-mktemp.h"
@@ -109,9 +108,11 @@ get_dir (gboolean make)
static time_t last = 0;
#ifdef TEMP_HOME
- gchar *tmpdir = NULL;
- tmpdir = g_build_filename(e_get_user_data_dir (),
- "cache", "tmp", NULL);
+ const gchar *user_cache_dir;
+ gchar *tmpdir;
+
+ user_cache_dir = e_get_user_cache_dir ();
+ tmpdir = g_build_filename (user_cache_dir, "tmp", NULL);
path = g_string_new(tmpdir);
if (make && g_mkdir_with_parents(tmpdir, 0777) == -1) {
g_string_free(path, TRUE);