LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-26-2008, 07:03 AM   #31
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55

Quote:
Getting the Application menu to work properly may be a different story, however, and I am disappointed to see that Firefox may be so dependent on GNOME components.
I guess this is what happens when the world thinks Linux = Ubuntu.
 
Old 06-26-2008, 07:21 AM   #32
GazL
Senior Member
 
Registered: May 2008
Posts: 3,503

Rep: Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026
Following the gentoo link above, thanks dugan, lead me to this one:
https://bugzilla.mozilla.org/show_bug.cgi?id=409192

Quote:
Ken Zalewski 2008-06-25 12:25:56 PDT

I am having the same problem with Firefox 3 on Slackware 12.1. Thunderbird no
longer launches when I click on a mailto: URL, even though the
network.protocol-handler.app.mailto pref is set to "/usr/bin/thunderbird". And
the Applications panel is empty, with no means to modify it.

I then built and installed the following GNOME packages:
orbit2, gconf, gnome-mime-data, gnome-vfs, intltool, libbonobo, and libgnome

Next, I deleted the compreg.dat file in my Firefox profile directory, and I
commented out the line in firefox.js that sets the mailto preferences mentioned
above.

After restarting Firefox 3, the Applications panel is now populated, and I can
set the mailto URL to open Thunderbird, Yahoo, or whatever else I choose.

I find it disturbing that Firefox 3 requires all of these GNOME libraries.
Slackware is a KDE distro, and there must be a more desktop-independent method
for accessing MIME data. Seven libraries to simply perform a hash table
storage and retrieval is unacceptable.
Personally, I think Ken is spot on with that conclusion. There seems to be a growing assumption recently that everyone is running a gnome desktop on linux. Using gui toolkits like gtk and Qt is one thing, but when you start requiring an entire chain of desktop environment specific features just to provide the functionality you'd traditionally find in a ~/.programrc or /etc/program.rc settings file then you've lost touch with what linux/unix is all about.

Seeing large flagship Open Source projects like Mozilla/Firefox make this mistake is truly saddening. Lets hope they come to their senses before they turn linux into the same mess that windows is.

edit: hehe, I just noticed Ken is one of our own and already posted that above, so my post was a little redundant. I still think he's spot on with his comments though.

Last edited by GazL; 06-26-2008 at 07:32 AM.
 
Old 06-26-2008, 12:42 PM   #33
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,520

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
I have also had this problem and I want to thank shadowsnipes for the solution.
In my case I renamed my ~/.mozilla/firefox/<random>.default/mimeTypes.rdf and started firefox 3.0 so that this file was recreated.
I then added entries as suggested by shadowsnipes and am now able to use the File -> Send Link.. dialog to start Thunderbird.
I have since edited my /usr/lib/firefox-3.0/defaults/pref/firefox.js and commented out the
Quote:
pref("network.protocol-handler.app.mailto", "/usr/bin/thunderbird");
line.

The blank Applications screen under Edit -> Preferences is still a bug, but it is possible to associate applications with file types so that they work correctly. You just cannot see them or change them from within Firefox 3.0.

This is my mimeTypes.rdf in case anyone wants a look, with xpdf added as the default app for pdf files.
Code:
<?xml version="1.0"?>
<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Description RDF:about="urn:scheme:handler:webcal"
                   NC:alwaysAsk="true">
    <NC:possibleApplication RDF:resource="urn:handler:web:http://30boxes.com/external/widget?refer=ff&amp;url=%s"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:application/pdf"
                   NC:value="application/pdf"
                   NC:editable="true"
                   NC:fileExtensions="pdf"
                   NC:description="">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/pdf"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:schemes">
    <NC:Protocol-Schemes RDF:resource="urn:schemes:root"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:handler:web:http://compose.mail.yahoo.com/?To=%s"
                   NC:prettyName="Yahoo! Mail"
                   NC:uriTemplate="http://compose.mail.yahoo.com/?To=%s" />
  <RDF:Description RDF:about="urn:mimetype:externalApplication:application/pdf"
                   NC:path="/usr/bin/xpdf"
                   NC:prettyName="xpdf" />
  <RDF:Description RDF:about="urn:scheme:handler:mailto"
                   NC:alwaysAsk="true">
    <NC:possibleApplication RDF:resource="urn:handler:web:http://compose.mail.yahoo.com/?To=%s"/>
    <NC:possibleApplication RDF:resource="urn:handler:local:/usr/bin/thunderbird"/>
    <NC:externalApplication RDF:resource="urn:scheme:externalApplication:mailto"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:scheme:webcal"
                   NC:value="webcal">
    <NC:handlerProp RDF:resource="urn:scheme:handler:webcal"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:scheme:mailto"
                   NC:value="mailto">
    <NC:handlerProp RDF:resource="urn:scheme:handler:mailto"/>
  </RDF:Description>
  <RDF:Seq RDF:about="urn:mimetypes:root">
    <RDF:li RDF:resource="urn:mimetype:application/pdf"/>
  </RDF:Seq>
  <RDF:Description RDF:about="urn:mimetype:handler:application/pdf"
                   NC:alwaysAsk="false"
                   NC:saveToDisk="false"
                   NC:useSystemDefault="false"
                   NC:handleInternal="false">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/pdf"/>
  </RDF:Description>
  <RDF:Seq RDF:about="urn:schemes:root">
    <RDF:li RDF:resource="urn:scheme:mailto"/>
    <RDF:li RDF:resource="urn:scheme:webcal"/>
  </RDF:Seq>
  <RDF:Description RDF:about="urn:handler:local:/usr/bin/thunderbird"
                   NC:prettyName="Thunderbird"
                   NC:path="/usr/bin/thunderbird" />
  <RDF:Description RDF:about="urn:handler:web:http://30boxes.com/external/widget?refer=ff&amp;url=%s"
                   NC:prettyName="30 Boxes"
                   NC:uriTemplate="http://30boxes.com/external/widget?refer=ff&amp;url=%s" />
  <RDF:Description RDF:about="urn:scheme:externalApplication:mailto"
                   NC:prettyName="Thunderbird"
                   NC:path="/usr/bin/thunderbird" />
  <RDF:Description RDF:about="urn:mimetypes">
    <NC:MIME-types RDF:resource="urn:mimetypes:root"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:root"
                   NC:en-US_defaultHandlersVersion="1" />
</RDF:RDF>
 
Old 06-26-2008, 02:17 PM   #34
regis_n_bits
Member
 
Registered: Mar 2006
Distribution: Slackware64 14.1 (kernel 3.14.4)
Posts: 83

Rep: Reputation: Disabled
Shadowsnipes is correct.
Quote:
I think regis_n_bits actually just built the firefox package from the slackBuild (binary repacking).

The problem, as I said earlier, is that the old thunderbird patch no longer works in Firefox 3.0 (mail handling changed). The patch I submitted in my last post can be used in a slackBuild or on a installed firefox package. If the old thunderbird patch was used you have to undo it, unless you want more than one thunderbird entry (one being broken).
I should have made it clearer in my post that I used the latest Slackbuild, and modified it to not apply the Thunderbird patch. Just a binary repacking (no compile from source, no adding new packages).
 
Old 06-29-2008, 04:04 PM   #35
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Original Poster
Rep: Reputation: 187Reputation: 187
This might be old news, but Dugan turened my on to this.

Dugan__________________________________________________

To the SlackBuild, I recommend fixing the blank applications menu bug.

The Bugzilla entry:
https://bugzilla.mozilla.org/show_bug.cgi?id=409192

The patch:
https://bugzilla.mozilla.org/attachment.cgi?id=325195

I added the patch to my SlackBuild and now everything works perfectly. (The crashing problem I mentioned earlier seems to have solved itself).
_______________________________________________________

Just applying this patch to a source build fixed the problem with the applications not showing up. You don't even need to install any gnome libs.
 
Old 06-30-2008, 10:12 AM   #36
kennyz
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
Daedra,

Thanks for that information. I rebuilt Firefox3 with the simple patch that you referenced, and without the seven GNOME libs that I previously needed.

The Applications Panel is working fine, and mailto URLs are working fine (without the protocol-handler preference being set).

I will post this new, working Firefox3 to Linuxpackages.net today.

Thanks for all of the help!
 
Old 06-30-2008, 01:07 PM   #37
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 70
Quote:
Originally Posted by kennyz View Post
Daedra,

Thanks for that information. I rebuilt Firefox3 with the simple patch that you referenced, and without the seven GNOME libs that I previously needed.

The Applications Panel is working fine, and mailto URLs are working fine (without the protocol-handler preference being set).

I will post this new, working Firefox3 to Linuxpackages.net today.

Thanks for all of the help!
Could you also post your build script here or with the package as well? Thanks.
 
Old 06-30-2008, 06:12 PM   #38
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Original Poster
Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by shadowsnipes View Post
Could you also post your build script here or with the package as well? Thanks.
This is the buildscript I'm using
http://webpages.charter.net/daedra/1...fox.SlackBuild

dugan just made a post though with his own slackbuilds, I haven't tried them yet, but there i'm sure there solid.

You will also need the patch for the application bug, you can get it here
http://webpages.charter.net/daedra/1..._panel.diff.gz

The buildscript has been updated to include the application bug patch.
 
Old 06-30-2008, 11:36 PM   #39
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 70
Quote:
Originally Posted by Daedra View Post
This is the buildscript I'm using
http://webpages.charter.net/daedra/1...fox.SlackBuild

dugan just made a post though with his own slackbuilds, I haven't tried them yet, but there i'm sure there solid.
dugan's slackBuild requires your font packages and xulrunner. Does your slackBuild require any compile time dependencies not met in stock Slackware?

Edit: I just looked at your Slackware Fonts thread and it says that the new cairo and fontconfig are required. Looking at your buildscript, it looks like I won't have to build xulrunner. Perhaps taking off the "--enable-system-cairo" will allow me to not need the new cairo and fontconfig (I don't mind the way my fonts look now).

Last edited by shadowsnipes; 07-01-2008 at 12:49 AM.
 
Old 07-01-2008, 04:34 AM   #40
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Original Poster
Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by shadowsnipes View Post
dugan's slackBuild requires your font packages and xulrunner. Does your slackBuild require any compile time dependencies not met in stock Slackware?

Edit: I just looked at your Slackware Fonts thread and it says that the new cairo and fontconfig are required. Looking at your buildscript, it looks like I won't have to build xulrunner. Perhaps taking off the "--enable-system-cairo" will allow me to not need the new cairo and fontconfig (I don't mind the way my fonts look now).
Yes, you only need my cairo/fontconfig packages if you want to enable proper sub-pixel rendering with firefox 3.0 if you don't care then just take out that option and it should compile fine.
 
Old 07-09-2008, 04:32 PM   #41
JerryP
Member
 
Registered: May 2005
Location: Hells Kitchen, New York
Distribution: PCLinuxOS 2007
Posts: 72

Rep: Reputation: 15
Quote:
Originally Posted by farwest92 View Post
I use thunderbird, not GMail, but I followed steps 1 & 2 to set up GMail and then I had the option of choosing Thunderbird as the default.

How to do this.

1. In about:config

set "gecko.handlerService.allowRegisterFromDifferentHost" to true

set "network.protocol-handler.app.mailto;" /usr/bin/thunderbird

2. Run this in address line
javascript:window.navigator.registerProtocolHandler("mailto","http://mail.google.com/mail/?extsrc=mailto&url=%s","GMail")

3. Firefox will ask permission to add this as default mailto handler..say yes
Click on a mailto link or right click to send page, Firefox will ask which application to use, choose thunderbird and set as default.

Got the info from:
http://digiwanderlust.blogspot.com/2...ndler-bug.html
I don't know why it works, good luck.
This totally worked for me and was a piece of cake to do.
 
  


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
clicking on links in thunderbird e-mails, firefox can't handle php scripts mbvpixies78 Linux - Software 11 01-02-2008 10:44 AM
Lost links between Firefox and Thunderbird Paraply Linux - Newbie 2 07-17-2007 10:19 PM
Thunderbird- links don't work in downloaded email Earl Parker II Linux - Software 2 01-29-2006 09:33 AM
Links in Thunderbird do not open Firefox on KDE chakatz Linux - Software 4 01-08-2006 10:31 AM
Handling Links with Firefox, Thunderbird, and Gaim apachedude Linux - Software 1 02-11-2005 09:07 AM


All times are GMT -5. The time now is 03:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration