i need help with MIME (solved)

Booting, installing, newbie
Post Reply
Message
Author
caesirian
Posts: 39
Joined: Tue 31 Oct 2006, 16:42

i need help with MIME (solved)

#1 Post by caesirian »

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
Last edited by caesirian on Wed 01 Nov 2006, 04:38, edited 1 time in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

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

caesirian
Posts: 39
Joined: Tue 31 Oct 2006, 16:42

#3 Post by caesirian »

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

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

ive checked the audio_x-mp3 file and this is what it says:

#! /bin/sh
exec run-xmms "$@"
replace the line with:

#! /bin/sh
exec xmms "$@"

Or edit /usr/local/bin/run-xmms like this:

Code: Select all

#!/bin/sh
xmms "$@" &
Mark

Post Reply