Mercurial > audlegacy
changeset 4575:92952061147d
Fix the initialization after messing it up myself - commandline argument handling was happening twice.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 21 May 2008 15:55:19 +0300 |
parents | 11f7874f3a95 |
children | 3789057a3f4f |
files | src/audacious/main.c |
diffstat | 1 files changed, 2 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- 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