3

Well it's pretty much in the title.

I did the Update to Ubuntu 18.04 with the update manager. However, now when I select several files in the file manager and hit enter, only the last in the list gets opened and played by Audacious.


Apparently, my system behaves a bit weird. Three options to open multiple sound files

  • Selecting them in the file manager, hit enter
  • Selecting them, right click and click on Open with Audacious
  • Selecting them, right click, go to sub-menu Open with ..., and then selecting Audacious

Only when I do it following the steps listed in the last point, then Audacious opens all files and puts them in a list.

Dohn Joe
  • 315
  • 4
  • 12
  • Cannot reproduce this on 18.04 upgraded from 17.10. Check whether the Exec line in /usr/share/applications/audacious.desktop reads like "Exec=audacious %U" (must be capital U) – vanadium Oct 06 '18 at 12:08
  • 1
    I narrowed it a bit down to hitting enter, or clicking **open with Audacious** in the context menu. However, when I go into the **open with ...** sub-menu on the context menu, and then select Audacious, it opens all files. – Dohn Joe Oct 08 '18 at 18:36
  • I could reproduce my observation with a fresh install of Ubuntu 18.04 and Audacious 3.9. – Dohn Joe Sep 06 '19 at 12:33
  • Apparently, this is a bug in nautilus, see Audacious issues [758](https://redmine.audacious-media-player.org/issues/758) and [597](https://redmine.audacious-media-player.org/issues/597) as well as Gnome Nautilus issue [117](https://gitlab.gnome.org/GNOME/nautilus/issues/117) – Dohn Joe Sep 06 '19 at 13:03
  • Do not hesitate to post your comment as an answer and accept it, even when you also asked it. this is perfectly fine on the site. – vanadium Sep 06 '19 at 13:07
  • @DohnJoe I have the same problem! Can you write here as an answer how you solved it? That would be nice! Thanks! – Socrates Oct 01 '19 at 12:39
  • There's apparently no solution, at least none that I know of. The maintainer of Audacious states, that this behaviour is caused by Nautilus. Unless this gets fixed in Nautilus, the problem will persist. – Dohn Joe Oct 01 '19 at 13:06
  • 1
    @DohnJoe Ok, that's nonsense, there is always a solution. ;) I'll post an answer in a bit. – Socrates Oct 01 '19 at 14:22

3 Answers3

1

IMO the problem is with the developers of Audacious. They may say that this is not their problem, and rather a Nautilus problem, but they are the developers. So adapt! ;)

For those who do not want to wait, here is a working solution for Ubuntu 19.04. Create a script /home/myuser/.config/audacious/start-audacious.sh with the following contents:

#!/bin/bash

echo "$1" >> ~/.config/audacious/playlist.m3u

# Check if another instance of this script is running.
pidof -o %PPID -x $0 >/dev/null && echo "ERROR: Script $0 already running" && exit 1

sleep 0.1
audacious ~/.config/audacious/playlist.m3u
rm ~/.config/audacious/playlist.m3u

Then allow execution of this file:

chmod +x /home/myuser/.config/audacious/start-audacious.sh

Then edit the file /usr/share/applications/audacious.desktop and replace Exec=audacious %U with Exec=/home/myuser/.config/audacious/start-audacious.sh.

That's it. No restart needed for any service. Now go take Nautilus to your *.mp3 files, mark a couple, and press Enter. Audacious should open your selection.

P.S.: Replace myuser by your user! ;)

Socrates
  • 2,351
  • 7
  • 31
  • 52
  • I will test this solution on my 18.04 LTS, but I see no reason why this shouldn't work. Thanks – Dohn Joe Oct 01 '19 at 16:06
  • Depending on the speed of your machine you can adjust the delay after the process check. If you have a slow machine, you might want to set it to `sleep 0.5`. – Socrates Oct 01 '19 at 16:35
  • @DohnJoe Have you tested? – Socrates Oct 09 '19 at 19:14
  • I am testing this solution, and it is generally working. One minor thing however is still different from the behaviour which I am used to: I select a couple of sound files and hit enter; now the player opens and plays a playlist containing the selected files; so far so good. If I leave the player open, select different files and hit enter, then nothing happens, and the player continues with the initial playlist. I guess this is due to the check, am I right? – Dohn Joe Oct 11 '19 at 12:34
  • this didn't work for me on 20.04 focal fossa... – leo monsaingeon Oct 12 '20 at 21:08
1

This Nautilus bug will hopefully be gone in Nautilus version 40 - the respective bug report has been closed by this commit.

Oehm
  • 13
  • 2
0
  1. Open Audacious, then goto File --> Settings
  2. Click "Playlist" tab
  3. Unchecked "Clear the playlist when openning files"
Uditha
  • 1