Project

General

Profile

Nautilus script to open several folders at once

Added by Dimon Limon about 7 years ago

Hey!

I'm currently using the following Nautilus (actually it's called Files in Gnome) scripts to open or enqueue music folders in Audacious:

#!/bin/bash
for FILE in "$@"; do
    audacious "$FILE" 
done
#!/bin/bash
for FILE in "$@"; do
    audacious -e "$FILE" 
done

While the second one is always working flawlessly, even with several folders, the first one only opens one folder, when several are selected.

Any clue why and how to solve that?

Thanks in advance!


Replies (2)

RE: Nautilus script to open several folders at once - Added by John Lindgren about 7 years ago

You should put all the files on the same command line:

#!/bin/bash
audacious "$@"
#!/bin/bash
audacious -e "$@"
    (1-2/2)