LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2011, 06:41 PM   #1
holadebeto
LQ Newbie
 
Registered: Aug 2011
Distribution: Ubuntu 10.04
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 08-10-2011, 02:42 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

.
 
Old 08-10-2011, 06:51 AM   #3
holadebeto
LQ Newbie
 
Registered: Aug 2011
Distribution: Ubuntu 10.04
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to download Mint 64bit unsuccessfully bootneck02 Linux - Newbie 3 03-30-2011 12:55 PM
how to make a su terminal launcher? logosys Linux - General 2 10-24-2005 08:04 PM
Run mpg123: system("mpg123"); How to know what PID it gets? And a Emacs highlightin q kornerr Programming 10 08-06-2005 10:17 AM
Creating a launcher (could be java launcher) The_Messiah Linux - Newbie 12 04-06-2005 01:36 AM
Make & launcher newbie question ScreeminChikin Linux - General 2 11-06-2002 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration