# HG changeset patch # User mf0102 <0102@gmx.at> # Date 1205778944 -3600 # Node ID e22a8deaf7b588f093a5ed5b31d32719202b0a7a # Parent 87cb9d3402d45fc6dc8ad01079b632b4875c12bd more headless fixes diff -r 87cb9d3402d4 -r e22a8deaf7b5 src/audacious/main.c --- a/src/audacious/main.c Mon Mar 17 18:53:45 2008 +0100 +++ b/src/audacious/main.c Mon Mar 17 19:35:44 2008 +0100 @@ -736,6 +736,11 @@ playlist_load(playlist, bmp_paths[BMP_PATH_PLAYLIST_FILE]); playlist_set_position(playlist, cfg.playlist_position); + /* Load extra playlists */ + if (!dir_foreach(bmp_paths[BMP_PATH_PLAYLISTS_DIR], load_extra_playlist, + playlist, NULL)) + g_warning("Could not load extra playlists\n"); + handle_cmd_line_options(); #ifdef USE_DBUS @@ -757,22 +762,13 @@ } GDK_THREADS_ENTER(); - } - - /* Load extra playlists */ - if(!dir_foreach(bmp_paths[BMP_PATH_PLAYLISTS_DIR], load_extra_playlist, - playlist, NULL)) { - g_warning("Could not load extra playlists\n"); - } - /* this needs to be called after all 3 windows are created and - * input plugins are setup'ed - * but not if we're running headless --nenolod - */ - mainwin_setup_menus(); + /* this needs to be called after all 3 windows are created and + * input plugins are setup'ed + * but not if we're running headless --nenolod + */ + mainwin_setup_menus(); - if (options.headless == FALSE) - { ui_main_set_initial_volume(); /* FIXME: delayed, because it deals directly with the plugin