summaryrefslogtreecommitdiffstats
path: root/source/xap/audacious/audacious.handle_cmd_line_options.diff
blob: 6ccb2243351740c373c56710bb353335a006d0db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- ./src/audacious/main.c.orig	2008-05-23 17:00:34.000000000 -0500
+++ ./src/audacious/main.c	2009-04-10 17:03:00.000000000 -0500
@@ -315,7 +315,7 @@
 }
 
 static void
-handle_cmd_line_options()
+handle_cmd_line_options(gboolean skip)
 {
     gchar **filenames = options.filenames;
 #ifdef USE_DBUS
@@ -430,7 +430,7 @@
     } /* is_running */
     else
 #endif
-    { /* !is_running */
+    if (!skip) { /* !is_running */
         if (filenames != NULL)
         {
             gint pos = 0;
@@ -715,7 +715,7 @@
 
     signal_handlers_init();
 
-    handle_cmd_line_options();
+    handle_cmd_line_options(TRUE);
 
     if (options.headless == FALSE)
     {
@@ -735,6 +735,8 @@
     plugin_system_init();
     playlist_system_init();
 
+    handle_cmd_line_options(FALSE);
+
 #ifdef USE_DBUS
     init_dbus();
 #endif