 |
 |
 |
 |
| EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life. |

30th March 2006, 08:19 AM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Concord, CA
Posts: 68

|
|
Default browser with FC5 Gnome 2.14
Hello,
When I click on a Web URL on my desktop, Mozilla is launched and the page is loaded. I want the default to be Firefox. I have Firefox set in Gnome's Preferred Applications applet. In fact, it doesn't matter WHAT I select in Preferred Applications. Can anyone tell me how to default a desktop URL launcher to Firefox?
Brad
|

30th March 2006, 09:54 AM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
You should have a file named /usr/share/applications/default.list with a MIME entry for web pages that looks like this:
Code:
text/html=redhat-web.desktop
In the same directory you should also find the file redhat-web.desktop which specifies the executable path and name for the application in charge of handling web pages. In my (default) installation it looks like this:
If you change the MIME settings in /usr/share/applications/default.list, remember to run
Code:
update-mime-database /usr/share/mime
htmlview is a bash script in /usr/bin which will run
gconftool-2 -g /desktop/gnome/url-handlers/http/command
which, in turn, should return 'firefox %s', which is what I set as my preferred application.
What a mess,uh?
Last edited by giulix; 30th March 2006 at 10:06 AM.
|

31st March 2006, 02:40 AM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Concord, CA
Posts: 68

|
|
Re: Default browser with FC5 Gnome 2.14
Hi Giulix,
I have the configuration exactly as you described it. I also tried blindly substituting "firefox" and "firefox %s" in a couple of places. No difference. No matter what I do, Mozilla keeps starting!
Anyway, I do thank you for the help. If you have any other ideas, please let me know.
Brad
|

31st March 2006, 12:05 PM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
Yeah, well.... I would start trying to pinpoint where exactly the problem lies. For instance, what is the outcome of
Code:
gconftool-2 -g /desktop/gnome/url-handlers/http/command
issued from a terminal while you're logged in as the user who is having this problem ?
|

1st April 2006, 11:04 AM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Concord, CA
Posts: 68

|
|
|
Re: Default browser with FC5 Gnome 2.14
Hi Giulix,
Gconf returns:
/usr/lib/firefox/firefox "%s"
which is correct. Any thoughts? Thanks again!
Brad
|

4th April 2006, 03:53 AM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Concord, CA
Posts: 68

|
|
Re: Default browser with FC5 Gnome 2.14
Bump.
|

4th April 2006, 03:58 AM
|
 |
Registered User
|
|
Join Date: Apr 2005
Location: Fragrant Harbour
Posts: 1,344

|
|
Quote:
|
Originally Posted by BradW
Hello,
When I click on a Web URL on my desktop, Mozilla is launched and the page is loaded. I want the default to be Firefox. I have Firefox set in Gnome's Preferred Applications applet. In fact, it doesn't matter WHAT I select in Preferred Applications. Can anyone tell me how to default a desktop URL launcher to Firefox?
Brad
|
Huh?
From the release notes (2.1.1 Desktop)
|

4th April 2006, 11:00 AM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
Ok. I reviewed my previous instructions and there's one more: in /usr/share/applications there's a file named mimeinfo.cache that needs to be updated too. There a few entries in there, related to web browsers:
Code:
text/html=mozilla.desktop;fedora-bluefish.desktop;mozilla-firefox.desktop;
application/vnd.mozilla.xul+xml=mozilla.desktop;mozilla-firefox.desktop;
text/mml=mozilla.desktop;mozilla-firefox.desktop;
I have tweaked the afore mentioned files for audio and video and I managed to get Gnome select the applications I wanted (xmms instead of mplayer and xine instead of totem or whatever). I hope this applies for web browsers, too...
|

5th April 2006, 01:54 AM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Concord, CA
Posts: 68

|
|
|
Re: Default browser with FC5 Gnome 2.14
Hi Giulix,
Thanks! I will check that file and let you know how it goes.
Brad
|

5th April 2006, 10:56 PM
|
 |
Registered User
|
|
Join Date: May 2004
Location: Concord, CA
Posts: 68

|
|
Re: Default browser with FC5 Gnome 2.14
Hi Giulix,
Editing /usr/share/applications/mimeinfo.cache didn't seem to make any difference either.  I also used:
update-mime-database /usr/share/mime
It's a good thing this problem isn't really that critical; just annoying.
Thanks very much for all your help!
Brad
|

6th April 2006, 08:33 AM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
|
Well... I give up. Any other taker ?
|

6th March 2007, 05:43 AM
|
|
Registered User
|
|
Join Date: Mar 2007
Posts: 1,047

|
|
I found way to do it.
I have a firefox-1.5 from 'Firefox' installed in the directory /usr/local/firefox-downloaded/firefox-1.5/firefox
Code:
cd /usr/bin
mv firefox firefox.orig
ln -s /usr/local/firefox-downloaded/firefox-1.5/firefox/firefox firefox
Shazam!
Now ... How do you do a similarly easy thing to default to use Thunderbird email?
DOH
Code:
cd /usr/share/applications
mv redhat-evolution-mail.desktop redhat-evolution-mail.desktop.orig
cp redhat-evolution-mail.desktop.orig redhat-evolution-mail.desktop
Now, edit redhat-evolution-mail.desktop
Change
Code:
Exec=evolution --component=mail
To
And
Code:
cd /usr/bin
ln -s /usr/local/firefox-downloaded/thunderbird/thunderbird thunderbird
Sha-za-um!
Last edited by lmo; 6th March 2007 at 06:40 PM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 01:01 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|