LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 10-28-2006, 04:57 PM   #1
zao
LQ Newbie
 
Registered: May 2006
Location: Kansas
Distribution: OpenSuse 10.2
Posts: 16

Rep: Reputation: 0
Need help with firefox


Hey guys!

Well I just recenley install suse 10.1, on my dads machine. He is using thunderbird for the mail program, which I also installed and configed it for his emails, that works just fine. But the problem is that when you click on the mail button in firefox to read mail or create a new one, it wont load thunderbird, it does nothing at all. I know what the issue is, we just have to tell the button to point towards thunderbird. But I can't figure it out. There are no settings in preferences to tell it to load thunderbird, I even went to the source code to try and see if there is a way to tell it to point towards thunderbird, and no luck on that one; I tried googling it, and nothing. So pretty much I am stumped and if anyone has any ideas please tell me. I am sure it is something really simple, and I am just over thinking it.

Thanks
 
Old 10-28-2006, 05:19 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
It takes a little bit of work to get Firefox to open Thunderbird and vice versa:

To get Firefox to open a mailto: link in Thunderbird
1. Create a file called mailto.sh and place it in your application directory don't forget to
make this script executable ( chmod +x mailto.sh )
2. Create or edit the user.js file in the /.mozilla/firefox/default.y2h/ directory
mailto.sh
#!/bin/bash
thunderbird *remote 'ping()' || exec thunderbird "$@" # exec thunderbird if there's no instance running
thunderbird *remote "xfeDoCommand(openInbox)" # otherwise raise window,
[ "${1%%:*}" = 'mailto' ] && thunderbird *remote "mailto(${1#mailto:})" # and maybe send the mailto:
user.js
user_pref("network.protocol*handler.app.mailto", "/home/xxxx/apps/firefox/mailto.sh");

To get Thunderbird to handle mailto: links in Thunderbird
1. Create a file called tbmailto.sh and place it in your application directory don't forget
to make this script executable ( chmod +x mailto.sh )
2. Create or edit the user.js file
for me this was in the /.thunderbird/default/43mklxiq.slt/ directory

Note: In KDE, the default web browser must be set from the Control Center as:
Control Center *> KDE Components *> Component Chooser *> Web Browser *> in an
application based on the contents of the URL must be selected

tbmailto.sh
#!/bin/sh
#script author: asterix
#http://forums.mozillazine.org/viewto...=136157#136157

export MOZILLA_FIVE_HOME=/home/xxx/apps/thunderbird
if [ $(ps aux | grep thunderbird | wc *l) *gt 4 ]; then
# thunderbird is running (thunderbird est lance)
$MOZILLA_FIVE_HOME/thunderbird *remote "mailto($1?subject=$2)"
else
# thunderbird is not running (thunderbird n'est pas lance)
$MOZILLA_FIVE_HOME/thunderbird *P default *compose mailto:$1?subject=$2;fi

user.js
//Use thunderbird to handle mailto:
user_pref("network.protocol*handler.app.mailto", "/home/xxxx/apps/thunderbird/tbmailto.sh");

To get Thunderbird to use Firefox for http, https & ftp links
Add the following lines to the same thnderbird user.js file listed above:
user.js
// Use firefox for http, https & ftp links
user_pref("network.protocol*handler.app.http", "/home/xxx/apps/thunderbird/openlink.sh");
user_pref("network.protocol*handler.app.https", "/home/xxx/apps/thunderbird/openlink.sh");
user_pref("network.protocol*handler.app.ftp", "/home/xxx/apps/thunderbird/openlink.sh");

You may also want to take a look at:
http://www.pclinuxos.com/forum/index.php?topic=10300.0
 
Old 10-28-2006, 05:25 PM   #3
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK - South Coast.
Distribution: Ubuntu (usually the latest....)
Posts: 2,672
Blog Entries: 9

Rep: Reputation: 45
Quote:
Originally Posted by zao
Hey guys!

Well I just recenley install suse 10.1, on my dads machine. He is using thunderbird for the mail program, which I also installed and configed it for his emails, that works just fine. But the problem is that when you click on the mail button in firefox to read mail or create a new one, it wont load thunderbird, it does nothing at all. I know what the issue is, we just have to tell the button to point towards thunderbird. But I can't figure it out. There are no settings in preferences to tell it to load thunderbird, I even went to the source code to try and see if there is a way to tell it to point towards thunderbird, and no luck on that one; I tried googling it, and nothing. So pretty much I am stumped and if anyone has any ideas please tell me. I am sure it is something really simple, and I am just over thinking it.

Thanks
Ok, now I'm rather rusty on this one (I have to use kontact for mail/PIM so I can sync my Treo 650 with my system).

From memory, you have to find the prefs.js file for thunderbird - you say that you're using SuSE, so I'll presume that youre using KDE, so open konqueror>view>show hidden files - there should be a directory called .thunderbird (notice the dot in front, that denotes a normally hidden file) the prefs.js file should be in there somewhere - you will have to dig around the other directories in there to find it probably - though it maybe that theres a profile file in there which usually has what looks like a load of randome letters/numbers for the file name.

in there, somewhere, there should be a file called prefs.js thats the one that has the line that tells you what thunderbird will open for a browser

Then, to do the same with firefox, konqueror>view>show hidden files - the directory is .mozilla (again the . in front as it's normally hidden), in there is a directory called firefox and in there is the profile directory - the prefs.js is in there (or should be) - Having looked at mine, theres a line in the prefs.js that says
Code:
user_pref("network.protocol-handler.app.mailto", "/usr/bin/mozilla-thunderbird");
which show you that it wants to open thunderbird if you hit a "mailto" button/link - otherwise it will open the systems default mail app.

That lots not a perfect explaination, but it's the best I can do from memory - Oh and you should be able to change the default system mail app in kde somewhere.

HTH

regards

John
 
  


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
Linux Firefox Slower than Windows Firefox on same machine gherikill Linux - Software 17 02-21-2008 12:06 AM
firefox does not stream video after firefox automatic upgrade? kazuya1977 VectorLinux 1 02-12-2006 01:48 PM
Firefox linux & FireFox windows observation shotokan General 66 12-16-2005 07:17 AM
Symlinking Firefox Extensions from Windows to Firefox? apachedude Linux - Software 11 11-26-2004 05:00 AM
Firefox died (Fedora Core 1, firefox latest) Brakki Fedora 1 03-05-2004 11:25 AM


All times are GMT -5. The time now is 03:14 PM.

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