LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying unsuccessfully to make launcher for mpg123 (https://www.linuxquestions.org/questions/linux-newbie-8/trying-unsuccessfully-to-make-launcher-for-mpg123-896447/)

holadebeto 08-09-2011 06:41 PM

Trying unsuccessfully to make launcher for mpg123
 
I want to make a launcher that will shuffle play my mp3?s in a folder called /home/music.

I've tried many combinations like
mpg123 /home/music/*.mp3 -Z
and have spent some time on google trying to figure out where I'm going wrong.

Everything works hunkey dorkey in the terminal, but I need to be in the directory before mpg123 will work.

Thank you.

knudfl 08-10-2011 02:42 AM

Welcome to LQ.

I guess, you will have to make a "play script" that can be executed by a launcher.

'play-mpg123' :
Code:

#!/bin/sh

cd /home/<name>/Music

mpg123 -Z *.mp3

Make the script executable, and copy it to /usr/local/bin/
And write play-mpg123 in the launcher.

.

holadebeto 08-10-2011 06:51 AM

Thank you knudfl!

Now I'll go back to studying how to make a bash script executable. Learning Linux is cool. Will get back to you later.


All times are GMT -5. The time now is 04:53 AM.