LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-18-2004, 05:02 PM   #1
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Rep: Reputation: 15
FC2: make firefox/thunderbird default for web/mail?


Hi!
I use Fedora Core 2 now, and didn't manage to make firefox and thunderbird the default applications for web and e-mail, instead of Mozilla. Here's a little config program for preferred programs, but I can only choose of the programs that were installed along with Fedora, or enter the path to some other program.
The problem is, that I have to start firefox and thiunderbird via shell scripts, like firefox.sh. But if I enter "sh /usr/local/firefox/firefox.sh" (or leave the .sh away) I cannot launch it via the GNOME panel and it's not used as the default app. How can I configure this, or make Fedora know my firefox?

thanks in advance,
thorax
 
Old 06-19-2004, 11:24 AM   #2
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
I don't know what do you mean with : The problem is, that I have to start firefox and thunderbird via shell scripts, like firefox.sh. , but may be this can help you.

If you know where is firefox intalled you can put the whole path, i mean /usr/lib/firefox/firefox (for example), not the path to the script but the path where is the program.
 
Old 06-19-2004, 12:01 PM   #3
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Original Poster
Rep: Reputation: 15
This doesn't work. I have to specify an executable. So I tried to execute the sh shell interperter, and give the script as a parameter to it. Simply running the 'firefox-bin' doesn't work; you MUST run it via 'firefox.sh'.
 
Old 06-19-2004, 03:19 PM   #4
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
in the carpet of firefox there is a file called firefox this is an executable file.
 
Old 06-20-2004, 08:03 AM   #5
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Original Poster
Rep: Reputation: 15
No, it isn't. It's an shell script, but without the .sh extension. The executable is firefox-bin.

But I've found a solution, here's the way if anyone is interested in firefox as default browser:
1. Get the 'firefox' shell script out of the firefox-directory, and open it with an editor.
2. change the variables in the first part of the document to these:

MOZ_DIST_BIN="path to firefox-directory"
MOZ_DEFAULT_NAME="./${cmdname}-bin" <---- leave it
MOZ_APPRUNNER_NAME="full path to firefox-bin, e.g. /usr/local/firefox/firefox-bin"
MOZ_VIEWER_NAME="path to firefox-directory, and add /viewer to it"
MOZ_PROGRAM="full path to firefox-bin, e.g. /usr/local/firefox/firefox-bin"

3. save it as 'firefox' in /usr/bin.
4. Now you can choose 'firefox' in the dafault program dialog.
 
Old 06-20-2004, 08:53 AM   #6
captain-mythos
Newbie
 
Registered: Jun 2004
Location: UK
Distribution: Fedora-C2
Posts: 6

Rep: Reputation: 0
hi in my machine both firefox and thunderbird appear in the preferred applications. alternatively maybe you could go preferences/file types and programs and change the associations with the www and mailto services. one strange thing is that if you change your preferences from one of the two the other does not change as well. for example if i use as preferred browser firefox the www filetypes remain associated to mozilla. anywya, since you can change both there is no problem.

BUT the problem i am facing is with the profiles. if i am already using firefox i cannot open it again from a link as the profile is used.

any help?

thanks
 
Old 07-01-2004, 04:14 PM   #7
leonya
LQ Newbie
 
Registered: Apr 2004
Location: NH/Boston
Distribution: Fedora Core 3
Posts: 9

Rep: Reputation: 0
>BUT the problem i am facing is with the profiles. if i am already using firefox i
> cannot open it again from a link as the profile is used.

In Firefox 0.9 they changed the syntax of the remote command a little, so old scripts have not worked for me. I now have this script which does work:

#!/bin/sh
/XXX/firefox/firefox -a firefox -remote "openURL($1,new-window)" || /XXX/f
irefox/firefox $1 &

Replace the "XXX/firefox" with the directory location where you have firefox installed. You can then use this script as your default browser.
 
Old 07-08-2004, 12:40 PM   #8
bdealey
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Your script to get firefox to be your default browser but allow you to click on a link from an email and open up in a new windows/tab without the Profife box starting works great.

Do you have anything similiar to this for Thurnderbird? The same problem exists when Thunderbird is already open and you click on a "mailto" link from a web page (for example).

If you don't want to use this wonderful script, the another method to get Firefox to show up in the PreferredApplications=>WebBroswer menu is to create a link to your firefox script in /usr/bin
 
Old 07-08-2004, 05:26 PM   #9
leonya
LQ Newbie
 
Registered: Apr 2004
Location: NH/Boston
Distribution: Fedora Core 3
Posts: 9

Rep: Reputation: 0
For thunderbird I have this script:

#!/bin/sh
/XXX/thunderbird/thunderbird -remote 'xfeDoCommand (openInbox)' || /XXX/thunderbird/thunderbird -mail &

Note that in the Preferred Applications dialog you'll have to put in the path to the above script followed by %s, for example:
/usr/local/bin/thunderbird-remote.sh %s
This will assure that the To: line is prepopulated with the target of the mailto:

P.S. For some reason, though, when Firebird is not already open and I click on a link in Thunderbird, it doesn't open. If Firebird is already open, a new window does open. I don't know why...

Last edited by leonya; 07-08-2004 at 05:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem changing the default Mail-Client to Thunderbird dragomir Linux - Software 3 10-19-2005 10:11 AM
How to make Firefox default web browser on Mandrake? dianat100 Linux - Newbie 4 03-19-2005 12:31 PM
KDE Default Browser Problems with firefox and thunderbird gnat79 Linux - Software 3 02-16-2005 02:10 PM
How do I make Firefox/Thunderbird my default browser/email client? Kyral Retsam Linux - Software 1 07-20-2004 10:03 PM
Firefox Default Browser (thunderbird) Warmaster Mandriva 9 05-25-2004 11:31 AM


All times are GMT -5. The time now is 11:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration