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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-18-2004, 05:02 PM
|
#1
|
|
Member
Registered: Jun 2004
Location: Germany
Posts: 73
Rep:
|
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
|
|
|
|
06-19-2004, 11:24 AM
|
#2
|
|
Member
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290
Rep:
|
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.
|
|
|
|
06-19-2004, 12:01 PM
|
#3
|
|
Member
Registered: Jun 2004
Location: Germany
Posts: 73
Original Poster
Rep:
|
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'.
|
|
|
|
06-19-2004, 03:19 PM
|
#4
|
|
Member
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290
Rep:
|
in the carpet of firefox there is a file called firefox this is an executable file.
|
|
|
|
06-20-2004, 08:03 AM
|
#5
|
|
Member
Registered: Jun 2004
Location: Germany
Posts: 73
Original Poster
Rep:
|
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.
|
|
|
|
06-20-2004, 08:53 AM
|
#6
|
|
Newbie
Registered: Jun 2004
Location: UK
Distribution: Fedora-C2
Posts: 6
Rep:
|
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
|
|
|
|
07-01-2004, 04:14 PM
|
#7
|
|
LQ Newbie
Registered: Apr 2004
Location: NH/Boston
Distribution: Fedora Core 3
Posts: 9
Rep:
|
>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.
|
|
|
|
07-08-2004, 12:40 PM
|
#8
|
|
LQ Newbie
Registered: Jul 2004
Posts: 1
Rep:
|
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
|
|
|
|
07-08-2004, 05:26 PM
|
#9
|
|
LQ Newbie
Registered: Apr 2004
Location: NH/Boston
Distribution: Fedora Core 3
Posts: 9
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
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
|
|
|
All times are GMT -5. The time now is 03:28 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|