When using Thunderbird i can click on a Link in an email which opens in the wrong Webbrowser. How can i make sure the Link opens into my desired webrowser instead?
Unfortunately there is not the one and only solution for this. It depends on how old your desktop profile is, how old your thunderbird profile is and how many window framworks you have used in the past. So the best thing is to try any of the following solutions in the given order.
Open yor thunderbird mail client and choose from the menu (Edit -> Preferences -> Attachments)
Choose the Incoming Tab.
If there is some content click on the Action Field for the HTTP and HTTPS Content Type and choose your desired browser.
The mimeTypes.rdf file contains information which are used to open external content. Existing entries can be adjusted (see above) but unfortunately, there is no way to add new file-type associations in the preferences window.
To add an entry for a scheme that does not appear in the list (e.g. "http" or "https"), use the following process:
Open the configuration editor (about:config) which can be accessed through Edit -> Preferences -> Advanced -> Config Editor....
Click on I'll be careful, I promise!.
In the search pane enter network.protocol-handler.warn-external
Change network.protocol-handler.warn-external.<protocol> to true for each of the protocols that you wish to configure by double-clicking on the preference. (e.g. change network.protocol-handler.warn-external.http to true to configure the program for http URLs).
- Click on a URL in an email in Thunderbird. Thunderbird will prompt for the application to use to open the link. Select the desired program and check the option to remember the selection.
XDG MIME action
The default browser is chosen based on the information in the XDG MIME database, as specified in the XDG MIME actions spec. Thunderbird looks up the program associated with the URL pseudo-MIME type (e.g. x-scheme-handler/http for HTTP URLs) or the attachment MIME type (e.g. text/html). The XDG MIME database can be queried and modified using the xdg-mime command-line tool as follows:
- Query the current default for HTTP URLs
xdg-mime query default x-scheme-handler/http firefox-esr.desktop
- Set default program for HTTP URLs to Firefox
xdg-mime default firefox-esr.desktop x-scheme-handler/http
If xdg-mime is not available, the defaults can be changed by editing ~/.local/share/applications/mimeapps.list as described in the XDG MIME actions spec and using information from /usr/share/applications/mimeinfo.cache for reference. For example, the default program for HTTP URLs can be set as follows:
[Default Applications] x-scheme-handler/http=firefox-esr.desktop
Even if the settings should be immediately available it is advised to close thunderbird and firefox and then reopen them again.