aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-17 11:14:06 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-17 11:14:06 +0000
commit3fec59fac205ff4588f8afe93b28943b31f9ab8d (patch)
tree0687e8a4cc948efdbcf2a480beb9381a03382e85 /src/utils.c
parentf0325b36e30c81266a5e6f750553be6bc6e8fe33 (diff)
automatically take over older config files.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@13 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 693f86ea..570f60f3 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -1593,6 +1593,17 @@ const gchar *get_rc_dir(void)
return rc_dir;
}
+const gchar *get_old_rc_dir(void)
+{
+ static gchar *old_rc_dir = NULL;
+
+ if (!old_rc_dir)
+ old_rc_dir = g_strconcat(get_home_dir(), G_DIR_SEPARATOR_S,
+ OLD_RC_DIR, NULL);
+
+ return old_rc_dir;
+}
+
const gchar *get_news_cache_dir(void)
{
static gchar *news_cache_dir = NULL;