# HG changeset patch # User Matti Hamalainen # Date 1211374519 -10800 # Node ID 92952061147d84eeda2a556b6551f98dc7cae99c # Parent 11f7874f3a9516ec610c5d499aa44bee477fbbce Fix the initialization after messing it up myself - commandline argument handling was happening twice. diff -r 11f7874f3a95 -r 92952061147d src/audacious/main.c --- a/src/audacious/main.c Wed May 21 13:12:39 2008 +0200 +++ b/src/audacious/main.c Wed May 21 15:55:19 2008 +0300 @@ -314,7 +314,7 @@ } } -static gboolean +static void handle_cmd_line_options() { gchar **filenames = options.filenames; @@ -520,12 +520,6 @@ if (options.activate) drct_activate(); } /* !is_running */ - -#ifdef USE_DBUS - return is_running; -#else - return FALSE; -#endif } static void @@ -672,8 +666,6 @@ gint main(gint argc, gchar ** argv) { - gboolean cmd_line_handled = FALSE; - /* glib-2.13.0 requires g_thread_init() to be called before all other GLib functions */ g_thread_init(NULL); @@ -723,10 +715,7 @@ signal_handlers_init(); -#ifdef USE_DBUS - /* If we are using DBUS, handle options here */ - cmd_line_handled = handle_cmd_line_options(); -#endif + handle_cmd_line_options(); if (options.headless == FALSE) { @@ -746,9 +735,6 @@ plugin_system_init(); playlist_system_init(); - if (!cmd_line_handled) - handle_cmd_line_options(); - #ifdef USE_DBUS init_dbus(); #endif