LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-01-2003, 06:35 PM   #1
MikeMcCarty
LQ Newbie
 
Registered: Jun 2003
Posts: 16

Rep: Reputation: 0
Link Difficulties


I've been trying to make a executable that would run xmms and a certain playlist. I've tried many things such as creating a link to an application and putting in the execute on click as 'xmms /music/album/*,' but that doesn't work. I've also tried creating a text file with the same line and executing that in a terminal, but nnone of these work. Does anybody know of any other thing that I can do?
- Mike
 
Old 07-01-2003, 07:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Assuming you created a xmms playlist
in your home and called it noise.m3u...

vi my_noise.sh

#!/bin/bash
`which xmms` ~/noise.m3u

chmod u+x my_noise.sh

Cheers,
Tink
 
Old 07-01-2003, 08:52 PM   #3
MikeMcCarty
LQ Newbie
 
Registered: Jun 2003
Posts: 16

Original Poster
Rep: Reputation: 0
I added this to the file and it changes the icon to a link, but I tried clicking on it and running in the command line xmms playlist* and nothing happened it just oppened up xmms and asked what files to load at of file:/. What do I do to use this?
- Mike
 
Old 07-01-2003, 09:23 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
If xmms comes up with a file dialog it
means that it can't find your playlist.
Are you sure you have the playlist
in your home, and your call to xmms
includes ~/name_of_your_list ?
`which xmms` ~/list

As my windowmanager (fluxbox) doesn't
have desktop icons I can't veryfiy that
clicking on the icon will do what you
want, but I'd say it's a fair bet it would :}


Cheers,
Tink

Last edited by Tinkster; 07-01-2003 at 10:02 PM.
 
Old 07-01-2003, 09:47 PM   #5
MikeMcCarty
LQ Newbie
 
Registered: Jun 2003
Posts: 16

Original Poster
Rep: Reputation: 0
The stuff you mentioned previously. Where do you type that?
 
Old 07-01-2003, 10:01 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In a shell/terminal of your choice...

If you're scared of vi (or just don't like it,
like me) you can use any GUI text editor
you like to create the shell-script.

Cheers,
Tink
 
Old 07-02-2003, 10:34 AM   #7
MikeMcCarty
LQ Newbie
 
Registered: Jun 2003
Posts: 16

Original Poster
Rep: Reputation: 0
No. I understand vi, but where do you add the text that you told me. Is it seperate or do you add it to the top of the playlist.
- Mike
 
Old 07-02-2003, 02:39 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Umm ... no.

You create a shell-script with vi,
and call it let's say my_noise.sh

In this you put
Code:
#!/bin/bash
`which xmms` ~/noise.m3u
You save that, and let's say
put it into /usr/bin
Code:
su -
mv my_noise.sh /usr/bin/.
Then you chmod it (from any
terminal) so it's executable for
every user:
Code:
chmod ugo+x /usr/bin/my_noise.sh
Now let's assume that your normal
user has a xmms playlist that's called
noise.m3u and that lives in his home,
clicking on the /usr/bin/my_noise.sh
will bring up xmms, automagically playing
the users list.

Cheers,
Tink

Last edited by Tinkster; 07-02-2003 at 02:41 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NIC difficulties joelkeeble Linux - Hardware 2 07-24-2005 10:58 PM
OpenBSD 3.6 install D-Link 300T / D-Link DFE 528TX lesleyb *BSD 2 04-01-2005 06:29 PM
Wake on Lan - Link on b4 power up, No Link light after shutdown? Mark007 Linux - Networking 0 11-20-2004 08:16 PM
eth1... failed; no link present. Check Link? illegalien Linux - Networking 3 11-03-2002 10:46 PM
Modem Difficulties Jeewhizz Linux - General 3 04-23-2002 03:03 PM

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

All times are GMT -5. The time now is 12:50 AM.

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