Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 29 Jan 2020, 18:11
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
i need help with MIME (solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
caesirian

Joined: 31 Oct 2006
Posts: 39

PostPosted: Tue 31 Oct 2006, 13:03    Post subject:  i need help with MIME (solved)  

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, 00:38; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Tue 31 Oct 2006, 18:22    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
caesirian

Joined: 31 Oct 2006
Posts: 39

PostPosted: Tue 31 Oct 2006, 20:57    Post subject:  

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
Back to top
View user's profile Send private message MSN Messenger 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Wed 01 Nov 2006, 05:10    Post subject:  

Quote:
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:
#!/bin/sh
xmms "$@" &


Mark
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0357s ][ Queries: 11 (0.0083s) ][ GZIP on ]