Open URL's in Thunderbird in favorite browser in XFCE

From Manjaro Linux
Jump to: navigation, search

1# Open file mimeTypes.rdf in favorite text editor. For this HowTo I used gedit. Remember replace <various characters> to correct value:

gedit ~/.thunderbird/<various characters>.default/mimeTypes.rdf

2# Delete current content in a file and paste in:

<?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:externalApplication:http"
                  NC:prettyName="xdg-open"
                  NC:path="/usr/bin/xdg-open" />
 <RDF:Description RDF:about="urn:scheme:http"
                  NC:value="http">
   <NC:handlerProp RDF:resource="urn:scheme:handler:http"/>
 </RDF:Description>
 <RDF:Seq RDF:about="urn:mimetypes:root">
 </RDF:Seq>
 <RDF:Description RDF:about="urn:handler:local:/usr/bin/xdg-open"
                  NC:prettyName="xdg-open"
                  NC:path="/usr/bin/xdg-open" />
 <RDF:Seq RDF:about="urn:schemes:root">
   <RDF:li RDF:resource="urn:scheme:mailbox"/>
   <RDF:li RDF:resource="urn:scheme:https"/>
   <RDF:li RDF:resource="urn:scheme:http"/>
   <RDF:li RDF:resource="urn:scheme:ftp"/>
 </RDF:Seq>
 <RDF:Description RDF:about="urn:schemes">
   <NC:Protocol-Schemes RDF:resource="urn:schemes:root"/>
 </RDF:Description>
 <RDF:Description RDF:about="urn:scheme:handler:http"
                  NC:alwaysAsk="false">
   <NC:externalApplication RDF:resource="urn:scheme:externalApplication:http"/>
 </RDF:Description>
 <RDF:Description RDF:about="urn:scheme:externalApplication:ftp"
                  NC:prettyName="xdg-open"
                  NC:path="/usr/bin/xdg-open" />
 <RDF:Description RDF:about="urn:mimetypes">
   <NC:MIME-types RDF:resource="urn:mimetypes:root"/>
 </RDF:Description>
 <RDF:Description RDF:about="urn:scheme:ftp"
                  NC:value="ftp">
   <NC:handlerProp RDF:resource="urn:scheme:handler:ftp"/>
 </RDF:Description>
 <RDF:Description RDF:about="urn:scheme:handler:https"
                  NC:alwaysAsk="false">
   <NC:externalApplication RDF:resource="urn:scheme:externalApplication:https"/>
 </RDF:Description>
 <RDF:Description RDF:about="urn:scheme:handler:ftp"
                  NC:alwaysAsk="false">
   <NC:externalApplication RDF:resource="urn:scheme:externalApplication:ftp"/>
   <NC:possibleApplication RDF:resource="urn:handler:local:/usr/bin/xdg-open"/>
 </RDF:Description>
 <RDF:Description RDF:about="urn:scheme:externalApplication:https"
                  NC:prettyName="xdg-open"
                  NC:path="/usr/bin/xdg-open" />
 <RDF:Description RDF:about="urn:root"
                  NC:pl_defaultHandlersVersion="-1" />
</RDF:RDF>

3# Open file helpers.rc in favorite text editor:

gedit ~/.config/xfce4/helpers.rc

4# Delete current content in a file and paste in:


FileManager=Thunar
MailReader=thunderbird
TerminalEmulator=custom-TerminalEmulator
WebBrowser=custom-WebBrowser


5# Open file custom-WebBrowser.desktop in favorite text editor:

gedit ~/.local/share/xfce4/helpers/custom-WebBrowser.desktop

For example Google Chrome with custom command - cache directory set to /dev/shm


[Desktop Entry]
NoDisplay=true
Version=1.0
Encoding=UTF-8
Type=X-XFCE-Helper
X-XFCE-Category=WebBrowser
X-XFCE-CommandsWithParameter=/usr/bin/google-chrome "%s" --disk-cache-dir=/dev/shm
Icon=google-chrome
Name=Google Chrome
X-XFCE-Commands=/usr/bin/google-chrome --disk-cache-dir=/dev/shm


6# For proper working Google Chrome copy file:

cp /usr/share/applications/google-chrome.desktop ~/.local/share/xfce4/helpers/google-chrome.desktop

7# Make sure that Google Chrome/other browser if u want, open web MIME handlers. Mime-h-chrome.png

Support

Official forum topic: [1]