Mozilla Thunderbird and Firefox could be compiled from source on specific linux distros. Speaking of Gentoo, the frequent updates combined with more than 2GBs of build space made me switch to the precompiled binary versions. Unfortunately, this step has broken the automatic opening of links in Firefox and mailto references in Thunderbird. This is how to make it work…
Basically, the are procedures described in gentoo-wiki.com pages. However, they do not work at all. The following may help to make it work. Try each solution and see what may be helpful in your case.
Firefox and Thunderbird executable binaries pretend to be located in /usr/bin directory. However, they are located in the /opt/firefox and /opt/thunderbird directories.
Even updated based on the above described, neither of the following has any effect.
gconftool-2 --set /desktop/gnome/url-handlers/http/command -t string '/opt/firefox/firefox' gconftool-2 --set /desktop/gnome/url-handlers/https/command -t string '/opt/firefox/firefox' gconftool-2 --set /desktop/gnome/url-handlers/ftp/command -t string '/opt/firefox/firefox' gconftool-2 --set /desktop/gnome/url-handlers/mailto/command -t string '/opt/thunderbird/thunderbird'
Edit -> Preferences -> Attachments -> Incoming
http: /opt/firefox/firefox https: /opt/firefox/firefox
Edit -> Preferences -> Applications
The described workaround has not been tested in the GNOME environment. Maybe one day, once GNOME3 becomes stable and stops crying “Oops. Something went wrong.” several times a day, I will test it in there. This reminds me of the birth pangs of KDE4 several years ago, lol.
This is a solution, which worked in XFCE4 when trying to switch back to the manually compiled version of Firefox (non-bin version).
Edit the ~/.local/share/applications/mimeapps.list file to see, which apps are curently matched with the specific MIME types. Try to find Firefox keyword in it:
grep Firefox ~/.local/share/applications/mimeapps.list application/x-extension-htm=userapp-Firefox-0FAYSW.desktop; application/x-extension-html=userapp-Firefox-0FAYSW.desktop; application/x-extension-shtml=userapp-Firefox-0FAYSW.desktop; application/x-extension-xht=userapp-Firefox-0FAYSW.desktop; application/x-extension-xhtml=userapp-Firefox-0FAYSW.desktop; application/xhtml+xml=userapp-Firefox-0FAYSW.desktop;
If the result looks similar as above, try to replace the userapp-Firefox-0FAYSW string with Firefox only. Voila, it works immediately 🙂