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 04-21-2004, 12:09 PM   #1
lcdial
LQ Newbie
 
Registered: Mar 2004
Location: Boston, MA
Distribution: Mandrake 10 Community
Posts: 15

Rep: Reputation: 0
FireFox as default browser


Hello,

I have successuly installed FireFox .8 on my Mandrake 10 Community install running KDE 3.2. I really like it, but I cannot set it as the default browser. I followed the instructions posted elsewhere in this forum and on the internet to no avail. Here's what I did:

1) Opened kcontrol --> components --> File Associations
2) Selected html; added firefox to the list (/usr/share/firefox/firefox %u).
3) moved it to the top.
4) Closed KControl

When I click on a link in Thunderbird, it opens Konquerer. I can go back and verify that the settings are there, and they are. It's like it's just IGNORING what I put in. Running the command /usr/share/firefox/firefox url from the console works fine.

What do I need to do here? Thanks in advance!

Lance
Reg. Linux User 352893
 
Old 04-21-2004, 12:22 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I'm not sure if this info is still current http://www.mozilla.org/projects/thun...linuxurls.html or http://forums.mozillazine.org/viewto...36044&start=90
It's a lot easier if you have Gnome installed, go to Desktop Preferences> Advanced> Preferred Applications and select Custom Web Browser: Command: /path/to/firefox/firefox %s

Last edited by Andrew Benton; 04-21-2004 at 12:25 PM.
 
Old 04-22-2004, 12:39 AM   #3
lcdial
LQ Newbie
 
Registered: Mar 2004
Location: Boston, MA
Distribution: Mandrake 10 Community
Posts: 15

Original Poster
Rep: Reputation: 0
Update

I've done some tinkering and I've figured some things out.

The problem is NOT with KDE. When I open an html file on my disk, it opens in Firefox. I had to use a script to make sure I did not get the open user profile error if FIrefox was already opened (I also have one for thunderbird -- if anyone needs either, just shoot me a line).

So, now I can open Firefox as the default browser from within KDE, but NOT from Thunderbird. Thunderbird insists on opening Konquerer. I've poked around all the menus and found nothing. Does anyone know how to make Firefox the default from Thunderbird?

Thanks!

Lance
 
Old 04-22-2004, 12:43 AM   #4
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
Selected html; added firefox to the list (/usr/share/firefox/firefox %u)

you say you added firefox to the list, if there were other entries, remove those and leave firefox.
 
Old 04-22-2004, 12:58 AM   #5
lcdial
LQ Newbie
 
Registered: Mar 2004
Location: Boston, MA
Distribution: Mandrake 10 Community
Posts: 15

Original Poster
Rep: Reputation: 0
I got it!!!

I found the way to do it from one of the links posted by Andrew Benton above. Okay, heres what I had to do....

First I had to copy a bash script (which I will of course give to anyone interested. It's also on the links above). Then I had to add a line to the prefs.js file within ~/.thunderbird.

The link I used is:
http://www.mozilla.org/projects/thun...linuxurls.html

It all seems to work now, so I'm happy -- but I wish it were a little easier.

Lance
 
Old 05-01-2004, 03:16 AM   #6
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
I wanted to do the same thing and, thanks to this thread, it almost works. The problem is that Tbird downloads the html file and opens /tmp/xxxxxxx.html in the browser instead of opening the page from its remote location. Any idea how I can change this?
 
Old 05-01-2004, 11:52 AM   #7
lcdial
LQ Newbie
 
Registered: Mar 2004
Location: Boston, MA
Distribution: Mandrake 10 Community
Posts: 15

Original Poster
Rep: Reputation: 0
Hmmm... I'm not really sure. There must be some sort of setting within TBird that's making it act that way. I wish i could be of more help... Let me know if you want to know anything about my setup (which seems to be working - at the moment).
 
Old 05-01-2004, 06:03 PM   #8
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
.

Never mind, I fixed it:
for some reason, until I added than line to prefs.js, Tbird was willing to open URL's correctly in epiphany. So I removed the line from prefs.js, renamed the epiphany wrapper script and replaced it with a link to my firefox wrapper script. And now it all works

Last edited by spuzzzzzzz; 05-01-2004 at 06:30 PM.
 
Old 05-05-2004, 01:41 PM   #9
Warmaster
Member
 
Registered: May 2004
Distribution: Mandrake 10.0 OFFICIAL
Posts: 49

Rep: Reputation: 15
Exclamation

Can anyone sum this up ?

noob-proof please...
 
Old 05-06-2004, 01:10 PM   #10
shishe
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
can anyone please tell me where do I find the file pref.js

thanks in advance
 
Old 05-06-2004, 02:45 PM   #11
lcdial
LQ Newbie
 
Registered: Mar 2004
Location: Boston, MA
Distribution: Mandrake 10 Community
Posts: 15

Original Poster
Rep: Reputation: 0
prefs.js

Its in your home directory under .thunderbird/default/odlnbyc9.slt/

so if your username is joebob it should be at:

/home/joebob/.thunderbird/default/odlnbyc9.slt/prefs.js

the directory odlnbyc9.slt may be different on your computer. Its hard to find because in Linux the directories beginning with a . are hidden.
 
Old 05-07-2004, 03:17 PM   #12
amon
Member
 
Registered: May 2004
Location: UK
Distribution: Debian, Ubantu, CentOS
Posts: 146

Rep: Reputation: 17
my solution

I'm in exactly the same position as the thread starter. except i am almost a total working it out as i go along and i think I'm doing OK. i now hardly boot my windows partition except for if i want to use my web cam or if i want to play games.

i used one of the texts linked to above and found that for me it worked to add the line to the prefs.js file
user_pref("network.protocol-handler.app.http", "/usr/local/firefox/firefox");
where /usr/local/firefox is where i installed (copied the files to) fierfox then obviously the fierfox bit on the end is the script to launch fierfox.

here is my guide on what i done for a total noob. i hope it helps:

note: close thunderbird before you change the file as thunderbird will overwrite the changes on exit

you have to edit the prefs.js file, to get to this file just go to your home folder.
if you can see the .thunderbird folder doubleclick on it
--if you dont have hidden folders shown then type in ".thunderbird" at the end of the address line then press enter eg. "/home/USERNAME/.thunderbird"
you will then be able to navigate to the "default" (/home/USERNAME/.thunderbird/default)folder
from there find the .slt folder (i think the name before the .slt changes from person to person as mine is different to the one posted above) then in there open the "prefs.js" with your preferred text editor
Add the line to the bottom:
user_pref("network.protocol-handler.app.http", "/usr/local/firefox/firefox");



your installation folder for fierfox is probably differant from mine if ive put it in the wrong place let me know as I'm a noob.

this seemed to work for me. my installation opened up epiphany browser rather than konquerer :S. i hope this is of help. i still get the problem with it wanting me to create a new profile if i already have fierfox loaded (i just create one that is gone next time it asks me) hey this is a beta so there are bound to be a few rough edges but lets face it it walks all over M$ shit.

i hope this helps someone
 
Old 05-07-2004, 06:09 PM   #13
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
Quote:
i still get the problem with it wanting me to create a new profile if i already have fierfox loaded
There is a simple workaround. Just copy the script on http://www.mozilla.org/projects/thun...linuxurls.html (you may need to change the value of MOZILLA_FIVE_HOME) and save it as /usr/bin/firefox-launcher. Make sure you set it as executable. Then point thunderbird at /usr/bin/firefox-launcher instead of firefox.

Then, whenever you click a link in thunderbird, it will open firefox if firefox hasn't been opened, and a new window if it has. So you won't have to bother with all the profile crap.
 
Old 05-08-2004, 07:16 AM   #14
amon
Member
 
Registered: May 2004
Location: UK
Distribution: Debian, Ubantu, CentOS
Posts: 146

Rep: Reputation: 17
thanks for that

ok i have changed the script in the /usr/bin called fierfox from being a copy of the fierfox script that licates the launcher to the below script:

#!/bin/sh

export MOZILLA_FIVE_HOME="/usr/local/firefox"

url="$1"
if [ "x$url" = "x" ]; then
url="about:blank"
fi

if $MOZILLA_FIVE_HOME/mozilla-xremote-client openURL\("$url"\); then
exit 0
fi
exec $MOZILLA_FIVE_HOME/firefox "$url"

only changing one part of one line which was:
export MOZILLA_FIVE_HOME="/usr/local/firefox"
as my installation is in /usr/local/firefox
this seems to work perfectly

thanks to all
 
Old 05-18-2004, 09:53 PM   #15
jdion81
LQ Newbie
 
Registered: May 2004
Distribution: Mandrake 10.1, 10.0
Posts: 3

Rep: Reputation: 0
Question It sorta works for me

I have copied the script listed and set the path to firefox, then pointed Thunderbird to the script. Now when I click a link in thunderbird, Firefox is opened and the page displayed. If Firefox is already open it uses the window already open and displays the webpage for the link clicked. It does not open a new window.

Any ideas?
 
  


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
Firefox as a Default browser tulip4heaven Linux - General 2 04-23-2005 06:08 AM
firefox default browser charnel Linux - Newbie 4 03-16-2005 06:12 PM
Can't make Firefox my default browser fryem720 Mandriva 2 08-27-2004 07:12 AM
Default browser as Firefox? subaruwrx Slackware 1 06-18-2004 04:40 AM
Firefox default browser ? Warmaster Mandriva 1 05-04-2004 12:51 PM

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

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