LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2011, 03:47 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Setting association between PLS file type and a given media player in Firefox.


Kernel 2.6.21.5, Slackware 12.0

Hi:
When I click on some audio stream links in my web browser (Mozilla Firefox), the stream comes in a URL ending in .pls, usually listen.pls. As I want mplayer to play it and not the default player, I intend to make the first the default one. In Firefox (2.0.0.4) I can do Edit>Preferences>Content>File Types>Manage and change the actions associated with each file type. However, if the type is, say, PDF, I can can only change the action if a PDF file has anytime been downloaded. So, the same goes for a PLS file.

You have an example of the kind of link I talk about here: http://81.223.24.100:8000/listen.pls In the case of a radio broadcast audio stream, I am not downloading it, I think. At least, the Download window does not open. The Download window not having open itsef, the PLS type does not appear in the window Edit>...>File Types>Manage leads to. And so, I cannot change the action. The action would be 'Open them with this application': mplayer. What can I do? Thanks.
 
Old 06-12-2011, 05:31 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
In the directory ~/.mozilla/firefox/ there is a unique config directory for your firefox settings, that ends with .default

In that directory there is a file called mimetypes.rdf

Open that file in a text editor and use the search function to find pls

The first occurrence should look like this

Code:
<RDF:Description RDF:about="urn:mimetype:handler:audio/x-scpls"
                   NC:alwaysAsk="false"
                   NC:saveToDisk="false"
                   NC:useSystemDefault="false"
                   NC:handleInternal="false">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:audio/x-scpls"/>
Change it to look like this :

Code:
<RDF:Description RDF:about="urn:mimetype:handler:audio/x-scpls"
                   NC:alwaysAsk="true"
                   NC:saveToDisk="false"
                   NC:useSystemDefault="false"
                   NC:handleInternal="false">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:audio/x-scpls"/>
Save the file and restart firefox.
You will now get the pop up dialog box when you click that link. Choose your preferred media player there (/usr/bin/mplayer).
 
Old 06-12-2011, 06:28 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Hi, and thanks for your kind reply.

I don't find pls in ~/.mozilla/firefox/u...default/mimetypes.rdf. I will copy your text into that file trying to insert it into the right location within the file and see what happens. Again, thank you very much and regards.

P.D.: I gave it a second thought. I'm sending you a copy of the file as an attachment. And a copy of the modified one too.
Attached Files
File Type: txt mimeTypes.txt (1.2 KB, 18 views)
File Type: txt mimeTypes.2.txt (1.2 KB, 13 views)

Last edited by stf92; 06-12-2011 at 08:19 AM.
 
Old 07-20-2012, 07:57 AM   #4
devdol
Member
 
Registered: Dec 2005
Distribution: debian (testing/unstable)
Posts: 68

Rep: Reputation: 17
Try to start nautilus, locate any file of the type you want to be differently associated in firefox/iceweasel's download list. In its context menu you will find a "open with..." option. Use that and select the application you want to be chosen by firefox.

Obviously the download manager uses nautilus defaults, ans NOT what is configured in Edit/Preferences/Applications (this is only relevant for browsing).
 
1 members found this post helpful.
Old 07-21-2012, 09:37 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks a lot, devdol.
 
  


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
How to change file association type for gnome programs on Kubuntu Felipe Linux - Software 3 08-18-2011 11:03 AM
Remove .pls association from gxine in Firefox? mnem0nic Linux - Software 3 02-17-2008 08:16 PM
file type association in gnome 2.1X benjalien Linux - Software 0 01-17-2006 03:12 AM
Stopping a file type association iainvt Linux - Software 1 09-07-2004 06:31 AM
Help with file-type association goof for folders... Sgaileach1 Linux - Software 7 02-02-2004 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:44 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