Module keep the execution process the problem will be solve the next version, I ve tried with xdg-open (launch the default music player) ( also try with cvlc it works too)
Code:
#!/bin/bash
URI="$1"
echo "url = $URI"
FOLDER="$HOME/Musique"
#then we proceed and launch the music
MUSIC=$(ls -d -1 "$FOLDER"/* | egrep -i '\.(mp3|ogg)$' | grep "$URI")
echo "music = $MUSIC"
#rhythmbox-client --play-source="$MUZIC";
#rhythmbox-clien --play
xdg-open "$MUSIC" &
I add this module and it works for me. The main problem that I have to deal with is the name of the music. I mean for my music redemption song.mp3. I say "lancer musique redemption song" and it launch ~/redemption song.mp3
But be aware that the module receive letter in lowercase and without accent. So if the title contains (capital letter) ABC.mp3 it coulds leads to some issue even if you pronounce ABC the module will receive abc. Maybe it is hard to understant. I don't know if I'm understanble
EDIT: Maybe it also works with rhythmbox there is a mistake MUZIC should be MUSIC