Problem with single instance in Windows (Audacious 3.5)
As a long time Audacious user (since version 2.1) in Linux and Windows, from time to time I write here to report some issues. These are the latest I found:
1) The single instance in Windows works in the sense that if you have opened Audacious and want to reproduce another file, it opens in the same instance. And that's why Audacious is my default music player in Windows. However, a problem arises if you select different music files (in Windows Explorer) and try to open all of them (i.e, after selecting the files, I use the context menu and select "Open in Audacious", or double click if Audacious is the default player). The normal behavior in other players is that a temporary playlist is added and all files selected appear in that list. But when I use Audacious, multiple instances are opened, one for each file selected.
Thanks for your attention!
#1 Updated by John Lindgren almost 5 years ago
- Description updated (diff)
Well, the root problem is that Windows Explorer shouldn't be starting a separate Audacious process for each file. The only way to "fix" this seems to be to change the file association in the registry to use DDE . Of course, that would require adding DDE support to Audacious, which isn't going to happen in the near future.
I did fix a race condition in the Audacious startup code, so that only one of the processes will declare itself the "server", which the others will try to connect to. However, the D-Bus messages seem to be getting lost, so only one file ends up in the playlist. I'm not sure yet if this is something that can be fixed in Audacious or if it's a defect in the Windows D-Bus implementation we use.
#2 Updated by John Lindgren almost 5 years ago
- Category set to core
- Status changed from New to Closed
- Target version set to 3.5.2
- % Done changed from 0 to 100
- Affects version 3.5.1 added
Fixed the problem that was causing D-Bus messages to get lost. All the "Open" commands will get sent to a single instance now:
- If you have the "Clear the playlist when opening files" option checked, the playlist will get cleared before each file is added, just as if you opened each file separately.
- The files won't get added to the playlist in any particular order. Windows is a multitasking system, so it's a race to see which client process gets the server's attention first.
So, in the end, you would be better off using drag-and-drop instead.