Thursday, June 2, 2016

Making Palemoon your default Browser

Weather you are using some weird DE/WM combination, or setting Palemoon as default browser simply does not work, you can try to create following files, to set it up...

If you don't have these files, create them:

~/.local/share/mime/packages/user-extension-html.xml:
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
 <mime-type type="application/x-extension-html">
  <comment>html document</comment>
  <glob pattern="*.html">
 </glob></mime-type>



~/.local/share/mime/packages/user-extension-htm.xml:
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
 <mime-type type="application/x-extension-htm">
  <comment>htm document</comment>
  <glob pattern="*.htm">
 </glob></mime-type>
</mime-info>



~/.local/share/mime/packages/user-extension-shtml.xml:
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
 <mime-type type="application/x-extension-shtml">
  <comment>shtml document</comment>
  <glob pattern="*.shtml">
 </glob></mime-type>
</mime-info>



~/.local/share/mime/packages/user-extension-xhtml.xml:
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
 <mime-type type="application/x-extension-xhtml">
  <comment>xhtml document</comment>
  <glob pattern="*.xhtml">
 </glob></mime-type>
</mime-info>



~/.local/share/mime/packages/user-extension-xht.xml:
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
 <mime-type type="application/x-extension-xht">
  <comment>xht document</comment>
  <glob pattern="*.xht">
 </glob></mime-type>
</mime-info>



~/.local/share/applications/mimeapps.list:
[Default Applications]
x-scheme-handler/http=palemoon.desktop
x-scheme-handler/https=palemoon.desktop
x-scheme-handler/ftp=palemoon.desktop
x-scheme-handler/chrome=palemoon.desktop
text/html=palemoon.desktop
application/x-extension-htm=palemoon.desktop
application/x-extension-html=palemoon.desktop
application/x-extension-shtml=palemoon.desktop
application/xhtml+xml=palemoon.desktop
application/x-extension-xhtml=palemoon.desktop
application/x-extension-xht=palemoon.desktop

[Added Associations]
x-scheme-handler/http=palemoon.desktop;
x-scheme-handler/https=palemoon.desktop;
x-scheme-handler/ftp=palemoon.desktop;
x-scheme-handler/chrome=palemoon.desktop;
text/html=palemoon.desktop;
application/x-extension-htm=palemoon.desktop;
application/x-extension-html=palemoon.desktop;
application/x-extension-shtml=palemoon.desktop;
application/xhtml+xml=palemoon.desktop;
application/x-extension-xhtml=palemoon.desktop;
application/x-extension-xht=palemoon.desktop;

~/.local/share/applications/palemoon.desktop:
[Desktop Entry]
Name=Palemoon
Exec=~/bin/palemoon %u
MimeType=application/x-palemoon
Icon=palemoon
Terminal=false
Type=Application
Categories=AudioVideo;Player;Video;
Comment=

No comments:

Post a Comment