# HG changeset patch # User Matti Hamalainen # Date 1214578725 -10800 # Node ID 8a783f826316e0f0d3b579207565f724780bc826 # Parent e4e7999a21bca33c455e4a0e6fcff9227a7b578f Added some debugging / startup messages (visible via 'audacious -N') to make it easier to see where things go wrong, if they do. diff -r e4e7999a21bc -r 8a783f826316 src/audacious/main.c --- a/src/audacious/main.c Fri Jun 27 17:57:39 2008 +0300 +++ b/src/audacious/main.c Fri Jun 27 17:58:45 2008 +0300 @@ -699,6 +699,7 @@ if (options.no_log == FALSE) aud_setup_logger(); + g_message("Initializing Gtk+"); if (!gtk_init_check(&argc, &argv) && options.headless == FALSE) { /* GTK check failed, and no arguments passed to indicate that user is intending to only remote control a running @@ -707,17 +708,22 @@ exit(EXIT_FAILURE); } + g_message("Setting up libSAD"); g_random_set_seed(time(NULL)); SAD_dither_init_rand((gint32)time(NULL)); + g_message("Loading configuration"); aud_config_load(); + g_message("Initializing signal handlers"); signal_handlers_init(); + g_message("Handling commandline options, part #1"); handle_cmd_line_options(TRUE); if (options.headless == FALSE) { + g_message("Non-headless operation setup"); ui_main_check_theme_engine(); /* register icons in stock @@ -732,15 +738,21 @@ } #ifdef USE_DBUS + g_message("Initializing D-Bus"); init_dbus(); #endif + g_message("Initializing plugin subsystems..."); plugin_system_init(); + + g_message("Setting up playlists"); playlist_system_init(); + g_message("Handling commandline options, part #2"); handle_cmd_line_options(FALSE); + g_message("Playlist scanner thread startup"); playlist_start_get_info_thread(); output_set_volume((cfg.saved_volume & 0xff00) >> 8, @@ -748,6 +760,7 @@ if (options.headless == FALSE) { + g_message("GUI and skin setup"); aud_set_default_icon(); #ifdef GDK_WINDOWING_QUARTZ set_dock_icon(); @@ -797,6 +810,7 @@ resume_playback_on_startup(); + g_message("Entering Gtk+ main loop!"); gtk_main(); GDK_THREADS_LEAVE();