comparison finch/finch.c @ 16483:5e47b3427b28

propagate from branch 'im.pidgin.rlaager.gaim_migration' (head dcc40d46afbe3f87cc674e4fb1526ac722bc35cb) to branch 'im.pidgin.pidgin' (head 0ef5b6c44115778e329fd628324124f872f5253b)
author Sean Egan <seanegan@gmail.com>
date Fri, 27 Apr 2007 02:14:44 +0000
parents 4999bbc52881 6c97924af83b
children 2da3e5a69ebc
comparison
equal deleted inserted replaced
16467:b2044e10915a 16483:5e47b3427b28
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