LinuxQuestions.org
Visit Jeremy's Blog.
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 12-07-2003, 07:59 PM   #16
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46

Thunderbird 0.4 is out... URLs can now be clicked.

Proper handling of them is however... another issue altogether
 
Old 12-08-2003, 04:00 PM   #17
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
Okay, has anyone found a way to actually get this working? It seems that when I click links, it complains about not being able to launch epiphany-bin. When I try launching epiphany-bin manually I get an error about missing the library file, libgtkembedmoz.so which happens to be provided my the Mozilla Suite (1.4 that came with my installation). When I tried to just run epiphany, it says about:

Code:
Cannot find mozilla installation directory. Please set MOZILLA_FIVE_HOME to your mozilla directory
So's I did

Code:
root@onizuka:ynadji$ export MOZILLA_FIVE_HOME=/usr/local/bin/MozillaFirebird
When I tried to run it again, it gave me this:

Code:
root@onizuka:ynadji$ /usr/bin/epiphany                                      
/usr/bin/epiphany-bin: relocation error: /usr/bin/epiphany-bin: undefined symbol: _ZN20NS_ConvertUCS2toUTF8C1ERK9nsAString
To me this seems like that default browser, according to thunderbird, is The Mozilla Suite. If I was using Thunderbird in the first place, don't you think it should automatically assume I'm using Firebird? Any workarounds for this guys?
 
Old 12-08-2003, 05:44 PM   #18
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Quote:
Originally posted by Azmeen
Thunderbird 0.4 is out... URLs can now be clicked.

Proper handling of them is however... another issue altogether

We are getting closer though
 
Old 12-08-2003, 07:02 PM   #19
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
Huzzah! I found out how to do it! Unfortunately for me, I still only can open a new instance, it won't open in other tabs .

This is the tutorial provided by the Mozilla guys, and this is a thread about helping people out with the problem!
 
Old 12-08-2003, 07:21 PM   #20
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Quote:
Originally posted by GT_Onizuka
Huzzah! I found out how to do it! Unfortunately for me, I still only can open a new instance, it won't open in other tabs .

This is the tutorial provided by the Mozilla guys, and this is a thread about helping people out with the problem!
They updated the shell script... the (older) version that I used doesn't work. Thanks for the shoutout... can't wait to get back home to test it... At Windowsland (work) now
 
Old 12-08-2003, 07:48 PM   #21
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
Here's my thunderbird-link.sh as I call it that I got from someone off of the forum:

Code:
#!/bin/bash
export MOZILLA_FIVE_HOME=/usr/local/bin/MozillaFirebird
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME
url=$1
[ -z $url ] && url=about:blank
## Run Firebird remotely if there's an existing process running...
if [ -x $MOZILLA_FIVE_HOME/MozillaFirebird ] ; then
rv=`ps -ef | grep $MOZILLA_FIVE_HOME | grep -v grep | wc -l`

if [ $rv == "0" ] ; then
$MOZILLA_FIVE_HOME/MozillaFirebird $url &
else
$MOZILLA_FIVE_HOME/MozillaFirebird -remote "openURL($url, new-tab)" &
fi
fi
He originally had it as new-window, but I changed it, unfortunately it doesn't work . It didn't work with new-window either. I set the default browser option by booting into GNOME (I usually use IceWM but I installed GNOME first with Slack) as the full path to the shell script with %s slapped on the end. How do you go about editing the prefs.js file? Do I have to make my own or something? Because I have the feeling that will make the tabs work. Thanks.
 
Old 12-09-2003, 06:14 AM   #22
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Yeah you make your own... here's a guide...

http://www.mozilla.org/unix/customizing.html#prefs
 
Old 12-09-2003, 07:22 AM   #23
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Quote:
Originally posted by GT_Onizuka
Here's my thunderbird-link.sh as I call it that I got from someone off of the forum:

Code:
#!/bin/bash
export MOZILLA_FIVE_HOME=/usr/local/bin/MozillaFirebird
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME
url=$1
[ -z $url ] && url=about:blank
## Run Firebird remotely if there's an existing process running...
if [ -x $MOZILLA_FIVE_HOME/MozillaFirebird ] ; then
rv=`ps -ef | grep $MOZILLA_FIVE_HOME | grep -v grep | wc -l`

if [ $rv == "0" ] ; then
$MOZILLA_FIVE_HOME/MozillaFirebird $url &
else
$MOZILLA_FIVE_HOME/MozillaFirebird -remote "openURL($url, new-tab)" &
fi
fi
He originally had it as new-window, but I changed it, unfortunately it doesn't work . It didn't work with new-window either. I set the default browser option by booting into GNOME (I usually use IceWM but I installed GNOME first with Slack) as the full path to the shell script with %s slapped on the end. How do you go about editing the prefs.js file? Do I have to make my own or something? Because I have the feeling that will make the tabs work. Thanks.
Actually your script and those along those lines will work correctly if Thunderbird is not running. Try it... somehow something in TB is intercepting calls to the browser.
 
Old 12-13-2003, 10:20 AM   #24
billdog
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Rep: Reputation: 0
since both firebird and thunderbird are still cooking you need to setup the association yourself. here is how i did it:

1. create a shell script that looks something like this:

# Set to the location of your Firebird Executable
FBDIR=/opt/MozillaFirebird
FBEXE=MozillaFirebird

# Choose how to open new links
OPENMODE="new-tab"
#OPENMODE="new-window"

# get URL to load
# if you use tab saver this is annoying
#url=$1; [ -z $url ] && url=about:blank
url=$1

# try xremote first and if it doesn't work, start a
# new instance of Firebird

/opt/thunderbird/mozilla-xremote-client "openURL($url,$OPENMODE)" || $FBDIR/$FBEXE $url &


note: make sure that the paths point to your file locations.

note: i had to point to the mozilla-xremote-client in the *thunderbird* dir because the one that came with the firebird binary for linux (.7) is not fresh enough.


2. go into the gnome control center and point to this script as the 'preferred browser'

OR

2. add this to your ~./thunderbird/default/xxxxxx/prefs.js file:
user_pref("network.protocol-handler.app.http", "/path/to/the_shell_script");

3. test above by running the script thus:

$ ./preload.sh http://google.com
(multiple times)

done!

(now to figure out how to register 'mailto' in firebird so that i can go the other way ;o)
 
Old 12-14-2003, 10:00 AM   #25
pickarooney
Member
 
Registered: Aug 2003
Distribution: (X)ubuntu Maverick
Posts: 152

Rep: Reputation: 15
what works for me

Neither MozillaFirebird nor mozilla-xremote-client worked for me, but MozillaFirebird-bin does the trick.

#!/bin/sh

# Set to the location of your Firebird Executable
FBDIR=/usr/share/MozillaFirebird
FBEXE=MozillaFirebird

# Choose how to open new links
OPENMODE="new-tab"
#OPENMODE="new-window"

# get URL to load
url=$1; [ -z $url ] && url=about:blank

# try xremote first and if it doesn't work, start a
# new instance of Firebird
$FBDIR/MozillaFirebird-bin -remote "openURL($url,$OPENMODE)" || $FBDIR/$FBEXE $url &
 
Old 12-14-2003, 05:21 PM   #26
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
The script works great, but thunderbird wont launch it... I've tried nuking the prefs file altogether but whenever I add a new entry via the GUI or by directly modding the file, I get nowhere TB used to start a browser if FB wasn't running, but even that goes out the window after a bit of fiddling around...

I've given up on this for the time being, unless someone has a brilliant suggestion?

Cheers.
 
Old 12-14-2003, 07:49 PM   #27
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
OK... first of all, I have this working... And I would like to apologize to everyone for not sharing it. I thought I did, but that was on my web site only.

OK, first of all... the reason. What's causing the problem? At first I thought it was Tbird... but suprise, suprise! Actually it's Fbird's fault! It wasn't handling URLs passed to it properly.

The good news is, this has been fixed in the newer Fbird dev builds. You can get the latest releases here.

The bad news is, there might be small but irritating bugs here and there. One that I found is the weird behavior of the Preference dialog... sometime it just refuses to close when you click the OK button.

But all in all... I would recommend using the dev builds
 
  


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
Firebird/Thunderbird v. Mozilla downinthemine Linux - Software 4 12-02-2003 02:46 AM
firebird and thunderbird don't mix? jaan kaer Linux - Newbie 2 11-23-2003 03:45 PM
Firebird/Thunderbird clash guygriffiths Linux - Software 1 10-24-2003 09:11 AM
firebird & thunderbird Nechos Linux - Software 15 09-27-2003 07:15 PM
How to change icons for Firebird and Thunderbird. deling Linux - Software 1 08-15-2003 11:00 PM

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration