diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-02-25 08:10:00 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-02-25 08:10:00 +0000 |
commit | 212887cb7478d45b4a4b8146a9617d1d88e99eae (patch) | |
tree | df274189f367e377ed9c0e07d2317826af00557f /src | |
parent | 070e412f18875b74e329d932d65b2917d8d81bd7 (diff) |
OS X: changed the location of settings to ~/Library/Application Support/Sylpheed .
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2848 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -175,7 +175,10 @@ static gboolean lock_socket_input_cb (GIOChannel *source, gpointer data); static void remote_command_exec (void); + +#if !defined(G_OS_WIN32) && !defined(__APPLE__) static void migrate_old_config (void); +#endif static void open_compose_new (const gchar *address, GPtrArray *attach_files); @@ -746,7 +749,7 @@ static void parse_gtkrc_files(void) static void setup_rc_dir(void) { -#ifndef G_OS_WIN32 +#if !defined(G_OS_WIN32) && !defined(__APPLE__) CHDIR_EXIT_IF_FAIL(get_home_dir(), 1); /* backup if old rc file exists */ @@ -786,7 +789,7 @@ static void setup_rc_dir(void) if (is_dir_exist(OLD_RC_DIR)) migrate_old_config(); } -#endif /* !G_OS_WIN32 */ +#endif /* !G_OS_WIN32 && !__APPLE__ */ syl_setup_rc_dir(); } @@ -1697,6 +1700,7 @@ static void remote_command_exec(void) } } +#if !defined(G_OS_WIN32) && !defined(__APPLE__) static void migrate_old_config(void) { GDir *dir; @@ -1774,6 +1778,7 @@ static void migrate_old_config(void) g_pattern_spec_free(pspec); g_dir_close(dir); } +#endif /* !G_OS_WIN32 && !__APPLE__ */ static void open_compose_new(const gchar *address, GPtrArray *attach_files) { |