comparison src/audacious/main.c @ 4357:e22a8deaf7b5

more headless fixes
author mf0102 <0102@gmx.at>
date Mon, 17 Mar 2008 19:35:44 +0100
parents 87cb9d3402d4
children 5c40eeb8a8a9
comparison
equal deleted inserted replaced
4356:87cb9d3402d4 4357:e22a8deaf7b5
734 playlist_init(); 734 playlist_init();
735 playlist = playlist_get_active(); 735 playlist = playlist_get_active();
736 playlist_load(playlist, bmp_paths[BMP_PATH_PLAYLIST_FILE]); 736 playlist_load(playlist, bmp_paths[BMP_PATH_PLAYLIST_FILE]);
737 playlist_set_position(playlist, cfg.playlist_position); 737 playlist_set_position(playlist, cfg.playlist_position);
738 738
739 /* Load extra playlists */
740 if (!dir_foreach(bmp_paths[BMP_PATH_PLAYLISTS_DIR], load_extra_playlist,
741 playlist, NULL))
742 g_warning("Could not load extra playlists\n");
743
739 handle_cmd_line_options(); 744 handle_cmd_line_options();
740 745
741 #ifdef USE_DBUS 746 #ifdef USE_DBUS
742 init_dbus(); 747 init_dbus();
743 #endif 748 #endif
755 run_load_skin_error_dialog(cfg.skin); 760 run_load_skin_error_dialog(cfg.skin);
756 exit(EXIT_FAILURE); 761 exit(EXIT_FAILURE);
757 } 762 }
758 763
759 GDK_THREADS_ENTER(); 764 GDK_THREADS_ENTER();
760 } 765
761 766 /* this needs to be called after all 3 windows are created and
762 /* Load extra playlists */ 767 * input plugins are setup'ed
763 if(!dir_foreach(bmp_paths[BMP_PATH_PLAYLISTS_DIR], load_extra_playlist, 768 * but not if we're running headless --nenolod
764 playlist, NULL)) { 769 */
765 g_warning("Could not load extra playlists\n"); 770 mainwin_setup_menus();
766 } 771
767
768 /* this needs to be called after all 3 windows are created and
769 * input plugins are setup'ed
770 * but not if we're running headless --nenolod
771 */
772 mainwin_setup_menus();
773
774 if (options.headless == FALSE)
775 {
776 ui_main_set_initial_volume(); 772 ui_main_set_initial_volume();
777 773
778 /* FIXME: delayed, because it deals directly with the plugin 774 /* FIXME: delayed, because it deals directly with the plugin
779 * interface to set menu items */ 775 * interface to set menu items */
780 create_prefs_window(); 776 create_prefs_window();