| 314 purple_whiteboard_set_ui_ops(pidgin_whiteboard_get_ui_ops()); |
316 purple_whiteboard_set_ui_ops(pidgin_whiteboard_get_ui_ops()); |
| 315 #ifdef USE_SCREENSAVER |
317 #ifdef USE_SCREENSAVER |
| 316 purple_idle_set_ui_ops(pidgin_idle_get_ui_ops()); |
318 purple_idle_set_ui_ops(pidgin_idle_get_ui_ops()); |
| 317 #endif |
319 #endif |
| 318 |
320 |
| 319 pidgin_stock_init(); |
|
| 320 pidgin_account_init(); |
321 pidgin_account_init(); |
| 321 pidgin_connection_init(); |
322 pidgin_connection_init(); |
| 322 pidgin_blist_init(); |
323 pidgin_blist_init(); |
| 323 pidgin_status_init(); |
324 pidgin_status_init(); |
| 324 pidgin_conversations_init(); |
325 pidgin_conversations_init(); |
| 406 " -c, --config=DIR use DIR for config files\n" |
407 " -c, --config=DIR use DIR for config files\n" |
| 407 " -d, --debug print debugging messages to stdout\n" |
408 " -d, --debug print debugging messages to stdout\n" |
| 408 " -h, --help display this help and exit\n" |
409 " -h, --help display this help and exit\n" |
| 409 " -m, --multiple do not ensure single instance\n" |
410 " -m, --multiple do not ensure single instance\n" |
| 410 " -n, --nologin don't automatically login\n" |
411 " -n, --nologin don't automatically login\n" |
| 411 " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" |
412 " -l, --login[=NAME] enable specified account(s) (optional argument NAME\n" |
| 412 " account(s) to use, separated by commas)\n" |
413 " specifies account(s) to use, separated by commas.\n" |
| |
414 " Without this only the first account will be enabled).\n" |
| 413 " --display=DISPLAY X display to use\n" |
415 " --display=DISPLAY X display to use\n" |
| 414 " -v, --version display the current version and exit\n"), PIDGIN_NAME, DISPLAY_VERSION, name); |
416 " -v, --version display the current version and exit\n"), PIDGIN_NAME, DISPLAY_VERSION, name); |
| 415 #else |
417 #else |
| 416 text = g_strdup_printf(_("%s %s\n" |
418 text = g_strdup_printf(_("%s %s\n" |
| 417 "Usage: %s [OPTION]...\n\n" |
419 "Usage: %s [OPTION]...\n\n" |
| 418 " -c, --config=DIR use DIR for config files\n" |
420 " -c, --config=DIR use DIR for config files\n" |
| 419 " -d, --debug print debugging messages to stdout\n" |
421 " -d, --debug print debugging messages to stdout\n" |
| 420 " -h, --help display this help and exit\n" |
422 " -h, --help display this help and exit\n" |
| 421 " -m, --multiple do not ensure single instance\n" |
423 " -m, --multiple do not ensure single instance\n" |
| 422 " -n, --nologin don't automatically login\n" |
424 " -n, --nologin don't automatically login\n" |
| 423 " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" |
425 " -l, --login[=NAME] enable specified account(s) (optional argument NAME\n" |
| 424 " account(s) to use, separated by commas)\n" |
426 " specifies account(s) to use, separated by commas.\n" |
| |
427 " Without this only the first account will be enabled).\n" |
| 425 " -v, --version display the current version and exit\n"), PIDGIN_NAME, DISPLAY_VERSION, name); |
428 " -v, --version display the current version and exit\n"), PIDGIN_NAME, DISPLAY_VERSION, name); |
| 426 #endif |
429 #endif |
| 427 } |
430 } |
| 428 |
431 |
| 429 purple_print_utf8_to_console(stdout, text); |
432 purple_print_utf8_to_console(stdout, text); |
| 476 #endif |
479 #endif |
| 477 { |
480 { |
| 478 gboolean opt_help = FALSE; |
481 gboolean opt_help = FALSE; |
| 479 gboolean opt_login = FALSE; |
482 gboolean opt_login = FALSE; |
| 480 gboolean opt_nologin = FALSE; |
483 gboolean opt_nologin = FALSE; |
| |
484 gboolean opt_nocrash = FALSE; |
| 481 gboolean opt_version = FALSE; |
485 gboolean opt_version = FALSE; |
| 482 gboolean opt_si = TRUE; /* Check for single instance? */ |
486 gboolean opt_si = TRUE; /* Check for single instance? */ |
| 483 char *opt_config_dir_arg = NULL; |
487 char *opt_config_dir_arg = NULL; |
| 484 char *opt_login_arg = NULL; |
488 char *opt_login_arg = NULL; |
| 485 char *opt_session_arg = NULL; |
489 char *opt_session_arg = NULL; |
| 506 {"debug", no_argument, NULL, 'd'}, |
510 {"debug", no_argument, NULL, 'd'}, |
| 507 {"help", no_argument, NULL, 'h'}, |
511 {"help", no_argument, NULL, 'h'}, |
| 508 {"login", optional_argument, NULL, 'l'}, |
512 {"login", optional_argument, NULL, 'l'}, |
| 509 {"multiple", no_argument, NULL, 'm'}, |
513 {"multiple", no_argument, NULL, 'm'}, |
| 510 {"nologin", no_argument, NULL, 'n'}, |
514 {"nologin", no_argument, NULL, 'n'}, |
| |
515 {"nocrash", no_argument, NULL, 'x'}, |
| 511 {"session", required_argument, NULL, 's'}, |
516 {"session", required_argument, NULL, 's'}, |
| 512 {"version", no_argument, NULL, 'v'}, |
517 {"version", no_argument, NULL, 'v'}, |
| 513 {"display", required_argument, NULL, 'D'}, |
518 {"display", required_argument, NULL, 'D'}, |
| 514 {"sync", no_argument, NULL, 'S'}, |
519 {"sync", no_argument, NULL, 'S'}, |
| 515 {0, 0, 0, 0} |
520 {0, 0, 0, 0} |