LinuxQuestions.org
Help answer threads with 0 replies.
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 07-08-2007, 05:16 AM   #1
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Rep: Reputation: 16
Setting Default Applications in FC


I've just installed RealPlayer 10 so I can hear rtsp streams on my FC6 box, running Gnome. When I specify a known rtsp URL in RealPlayer's Open Location option, I hear the stream. If I click on a provider's web site to hear a stream, I get message "Totem could not play 'rtsp://...'" How do I set the default player for rtsp streams to be RealPlayer, instead of my current default of Totem?

The bigger question is, how is a file extension or TCP/IP protocol translated into a default installed application to process the file of URL? I know that if I already have a file of a particular extension, I can click it's property page and select the default app for files of that type. Usefull, but not the solution unless I already have a file of that extension on my box. And that approach is of no use as far TCP/IP protocols are concerned, unless I've missed something, here.

On FC6, an entry under System -> Preferences that was specifically devoted to defining default apps for file extensions, TCP/IP protocols and ports would be handy...

Can anyone assist? Apparently, KDE has this functionality, at least as far as file extensions are concerned...
 
Old 07-08-2007, 05:59 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Type "about:config" in Firefox's address bar. Type rtsp in the search bar and on the "network.protocol-handler.app.rtsp" row, change the value field to "/usr/bin/realplay".
 
Old 07-08-2007, 06:57 AM   #3
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Original Poster
Rep: Reputation: 16
Thanks. When I specify an address of "about:config", I see a list of preferences and values. There is no row for preference "network.protocol-handler.app.rtsp", or any preference including "rtsp".
 
Old 07-08-2007, 07:08 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
It may be buried down a bit. Enter rtsp in the filter. I'm using Firefox 2.0.0.4.
 
Old 07-08-2007, 11:20 AM   #5
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
I don't have any rtsp in Firefox 2.0.0.4, either.
 
Old 07-08-2007, 06:14 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Try creating your own entry.
Right click on an empty area and select: New -> String
Then enter "network.protocol-handler.app.rtsp" in the dialog box.
Click OK. Another dialog will pop up asking for the "Value". Enter the location of the RealPlayer program, probably "/usr/bin/realplay".

You might need to restart firefox for your new config to be read in.

Last edited by jschiwal; 07-08-2007 at 06:15 PM.
 
Old 07-08-2007, 11:25 PM   #7
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Original Poster
Rep: Reputation: 16
Thanks, jschiwal, for your suggestion. I have added preference name network.protocol-handler.app.rtsp with value /usr/bin/realplay. On the command line, /usr/bin/realplay starts RealPlayer. But when I click on a provider's link to an audio feed, my FC6 box still fires up Totem, which complains it can't handle rtsp streams. Totem is still the default, not RealPlayer.

Do you have any further suggestions on this? Are the .desktop files for totem and realplay that I can see in /usr/share/applications somehow relavent here?

Regards,
Jon
 
Old 07-09-2007, 04:03 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Do you have this file:
Code:
/opt/gnome/share/application-registry> less realplay.applications
realplay
        command=realplay
        name=RealPlayer
        can_open_multiple_files=true
        expects_uris=no
        requires_terminal=false
        all_gnome_vfs_schemes_supported=no
        supported_uri_schemes=rtsp,http,file,pnm
        mime_types=application/ogg,application/sdp, ...
I don't use gnome, but there should be a place to change the applications used for handling particular mime types.
 
Old 07-09-2007, 04:03 AM   #9
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
Mozplugger might help -- it's a plugin for calling external programs controlled by mime types.
 
Old 07-09-2007, 09:16 PM   #10
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Original Poster
Rep: Reputation: 16
I have file /usr/share/application-registry/realplay.application, which contains:
realplay
command=realplay
name=RealPlayer
can_open_multiple_files=true
expects_uris=no
requires_terminal=false
all_gnome_vfs_schemes_supported=no
supported_uri_schemes=rtsp,http,file,pnm
mime_types=application/ogg,application...

It looks the same as yours, but I suspect all it says is that RealPlayer can play rtsp streams - not that RealPlayer is the default player of these streams.

Somewhere on the box, there must be a file which identifies default applications...
 
  


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
Default Applications inspiron_Droid Linux - Desktop 2 01-23-2007 03:58 PM
Changing default applications pharmd Ubuntu 2 12-09-2006 11:31 AM
Setting default applications in GNOME smiley_lauf Ubuntu 9 02-25-2006 02:12 PM
Setting default applications in GNOME2 SUSE Linux 10 smiley_lauf Linux - Newbie 2 01-15-2006 08:33 PM
setting default page size and default tray lived4eva Linux - General 1 11-04-2003 02:39 PM

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

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