#rev 2020-09-15 gfreudig = Problem = 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? = Solution = 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. == Thunderbird Settings == 1. Open yor thunderbird mail client and choose from the menu (''Edit -> Preferences -> Attachments'') 1. Choose the '''Incoming''' Tab. 1. If there is some content click on the ''Action'' Field for the '''HTTP''' and '''HTTPS''' Content Type and choose your desired browser. . {{attachment:ThunderSettings.png}} == mimeTypes.rdf == 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: 1. Open the configuration editor (about:config) which can be accessed through {{{Edit -> Preferences -> Advanced -> Config Editor....}}} 1. Click on {{{I'll be careful, I promise!}}}. 1. In the search pane enter '''network.protocol-handler.warn-external''' 1. Change network.protocol-handler.warn-external. 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). 1. 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 [[http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec|XDG MIME database]], as specified in the [[http://www.freedesktop.org/wiki/Specifications/mime-actions-spec|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 [[http://www.freedesktop.org/wiki/Specifications/mime-actions-spec#User-specified_application_ordering|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. ---- ##[[CategoryMAIL]] ##Gibt es prinzipiell alles noch, zeigte aber bei mir keine Wirkung. Ev. braucht es noch einen weiteren Mechanismus? [[CategoryTBD]]