diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-17 11:14:06 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-01-17 11:14:06 +0000 |
commit | 3fec59fac205ff4588f8afe93b28943b31f9ab8d (patch) | |
tree | 0687e8a4cc948efdbcf2a480beb9381a03382e85 /src/prefs_common.c | |
parent | f0325b36e30c81266a5e6f750553be6bc6e8fe33 (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/prefs_common.c')
-rw-r--r-- | src/prefs_common.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/prefs_common.c b/src/prefs_common.c index a448368f..1780d94c 100644 --- a/src/prefs_common.c +++ b/src/prefs_common.c @@ -754,7 +754,19 @@ void prefs_common_read_config(void) gchar *path; gchar buf[PREFSBUFSIZE]; - prefs_read_config(param, "Common", COMMON_RC); + path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL); +#if 0 + if (!is_file_exist(path)) { + debug_print("reading older version of sylpheedrc ...\n"); + g_free(path); + path = g_strconcat(get_old_rc_dir(), G_DIR_SEPARATOR_S, + COMMON_RC, NULL); + encoding = conv_get_locale_charset_str(); + } +#endif + + prefs_read_config(param, "Common", path, NULL); + g_free(path); prefs_common.online_mode = TRUE; |