Package: audacious
Version: 1.5.1-4


When I double click on a music file (for example and MP3 file),
Audacious does not play that file, but it starts playing the last
playlist I have given it.

I attached a patch which fixes this issue.
The patch is based on that one from gentoo bugzilla:

http://viewcvs.gentoo.org/viewcvs.py/gentoo-x86/media-sound/audacious/files/1.5.1-commandline-options.patch?rev=1.1&view=markup

But I modified this patch that you can append in debian/patches/series so
it works when you apply it.
This patch is already in ubuntu and works.

Cheers,
    Stefan Ebner
--- audacious-1.5.1.orig/debian/patches/005-playlist_play_clicked_file.patch
+++ audacious-1.5.1/debian/patches/005-playlist_play_clicked_file.patch
@@ -0,0 +1,45 @@
+Index: audacious-1.5.1-4ubuntu1/src/audacious/main.c
+===================================================================
+--- audacious-1.5.1-4ubuntu1.orig/src/audacious/main.c	2008-11-05 11:31:18.000000000 +0100
++++ audacious-1.5.1-4ubuntu1/src/audacious/main.c	2008-11-05 11:34:13.000000000 +0100
+@@ -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,10 +715,10 @@
+ 
+     signal_handlers_init();
+ 
+-    plugin_system_init();
+-    playlist_system_init();
++    handle_cmd_line_options(TRUE);
+ 
+-    handle_cmd_line_options();
++    plugin_system_init();
++    playlist_system_init();    
+ 
+     if (options.headless == FALSE)
+     {
+@@ -735,6 +735,8 @@
+         ui_manager_create_menus();
+     }
+ 
++    handle_cmd_line_options(FALSE);
++
+ #ifdef USE_DBUS
+     init_dbus();
+ #endif

Reply via email to