comparison finch/finch.c @ 16380:6c97924af83b

Call the migrate code from Finch.
author Richard Laager <rlaager@wiktel.com>
date Tue, 24 Apr 2007 16:20:01 +0000
parents 634b96915d2e
children 5e47b3427b28
comparison
equal deleted inserted replaced
16379:30f2fdcea12c 16380:6c97924af83b
270 /* 270 /*
271 * We're done piddling around with command line arguments. 271 * We're done piddling around with command line arguments.
272 * Fire up this baby. 272 * Fire up this baby.
273 */ 273 */
274 274
275 /* Because we don't want debug-messages to show up and corrup the display */ 275 /* We don't want debug-messages to show up and corrupt the display */
276 purple_debug_set_enabled(debug_enabled); 276 purple_debug_set_enabled(debug_enabled);
277
278 /* If we're using a custom configuration directory, we
279 * do NOT want to migrate, or weird things will happen. */
280 if (opt_config_dir_arg == NULL)
281 {
282 if (!purple_core_migrate())
283 {
284 char *old = g_strconcat(purple_home_dir(),
285 G_DIR_SEPARATOR_S ".gaim", NULL);
286 char *text = g_strdup_printf(_(
287 "%s encountered errors migrating your settings "
288 "from %s to %s. Please investigate and complete the "
289 "migration by hand."), _("Finch"),
290 old, purple_user_dir());
291
292 g_free(old);
293
294 purple_print_utf8_to_console(stderr, text);
295 g_free(text);
296
297 return 0;
298 }
299 }
277 300
278 purple_core_set_ui_ops(gnt_core_get_ui_ops()); 301 purple_core_set_ui_ops(gnt_core_get_ui_ops());
279 purple_eventloop_set_ui_ops(gnt_eventloop_get_ui_ops()); 302 purple_eventloop_set_ui_ops(gnt_eventloop_get_ui_ops());
280 purple_idle_set_ui_ops(finch_idle_get_ui_ops()); 303 purple_idle_set_ui_ops(finch_idle_get_ui_ops());
281 304