hi, i set the script of my defaultaudioplayer to execute xmms, so when i click an audio file xmms opens it but.. it wont play the song automatically, how could i set the audio extensions to start playing it with xmms when i double-click (just one click in my case) them?
someone told me about the MIME file and that i must edit it to do what i want... i have no idea wheres that file and whats the script i should write
anybody else could tell me what should i do please?
my puppy version is 2.11
------------------------------------
SOLVED
the script was bad... it had to be exec xmms... instead of exec run-xmms
i need help with MIME (solved)
i need help with MIME (solved)
Last edited by caesirian on Wed 01 Nov 2006, 04:38, edited 1 time in total.
the startscripts are in
/root/Choices/MIME-types
To play mp3 with xmms, edit:
audio_x-mp3
If it still does not work, then maybe xmms is no binary, but a startscript.
Control, if your xmms startscript supports arguments.
To find it, type:
which xmms
This should tell you something lke
/usr/local/bin/xmms
Control the size:
ls -al /usr/local/bin/xmms
If it is only some byte, it is a script.
So you could edit it:
leafpad /usr/local/bin/xmms
if it has such a line:
/usr/local/xmms-xxxyyy/xmms
Then add the ability to pass arguments:
/usr/local/xmms-xxxyyy/xmms "$@"
With this dotpup, this is not required, it works with a click in Rox (after editing the mime-type):
http://dotpups.de/dotpups/Multimedia/xmms-1.2.10/
Mark
/root/Choices/MIME-types
To play mp3 with xmms, edit:
audio_x-mp3
If it still does not work, then maybe xmms is no binary, but a startscript.
Control, if your xmms startscript supports arguments.
To find it, type:
which xmms
This should tell you something lke
/usr/local/bin/xmms
Control the size:
ls -al /usr/local/bin/xmms
If it is only some byte, it is a script.
So you could edit it:
leafpad /usr/local/bin/xmms
if it has such a line:
/usr/local/xmms-xxxyyy/xmms
Then add the ability to pass arguments:
/usr/local/xmms-xxxyyy/xmms "$@"
With this dotpup, this is not required, it works with a click in Rox (after editing the mime-type):
http://dotpups.de/dotpups/Multimedia/xmms-1.2.10/
Mark
i already have installed that dotpup
ive checked the audio_x-mp3 file and this is what it says:
#! /bin/sh
exec run-xmms "$@"
i also tried this:
sh-3.00# which xmms
/usr/bin/xmms
sh-3.00# ls -al /usr/bin/xmms
-rwxr-xr-x 1 root root 1016252 Mar 31 2006 /usr/bin/xmms
sh-3.00# leafpad /usr/bin/xmms ---when i type this then a window pops up with a weird line... with unreadable characters
and like i said before i click the mp3 files and xmms starts, but nothing happens... and i was wrong before because the xmms doesnt even load the song... i click the mp3 file and xmms starts.. thats all
ive checked the audio_x-mp3 file and this is what it says:
#! /bin/sh
exec run-xmms "$@"
i also tried this:
sh-3.00# which xmms
/usr/bin/xmms
sh-3.00# ls -al /usr/bin/xmms
-rwxr-xr-x 1 root root 1016252 Mar 31 2006 /usr/bin/xmms
sh-3.00# leafpad /usr/bin/xmms ---when i type this then a window pops up with a weird line... with unreadable characters
and like i said before i click the mp3 files and xmms starts, but nothing happens... and i was wrong before because the xmms doesnt even load the song... i click the mp3 file and xmms starts.. thats all
replace the line with:ive checked the audio_x-mp3 file and this is what it says:
#! /bin/sh
exec run-xmms "$@"
#! /bin/sh
exec xmms "$@"
Or edit /usr/local/bin/run-xmms like this:
Code: Select all
#!/bin/sh
xmms "$@" &