[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


howtos:software:firefox [2019/02/21 11:48 (UTC)] (current) – Merge several different pages markand
Line 1: Line 1:
 +====== Firefox ======
  
 +Firefox is an opensource web browser from Mozilla.
 +
 +====== Installation ======
 +
 +Firefox is distributed with Slackware.
 +
 +====== Tips ======
 +
 +===== Make firefox understand downloaded files =====
 +
 +It is quite annoying that Mozilla Firefox always forgets what application to use for “opening” a file which you just downloaded. Also, the context menu “Open containing folder” in the Downloads overview does not work.
 +
 +Using “xdg-open” you can improve the integration of Firefox into your Desktop Environment a lot:
 +
 +  - Stop firefox if it is running
 +  - Delete or rename the mimetypes cache (where firefox keeps its file association settings): <code>
 +$ rm ~/.mozilla/firefox/<yourprofile>/mimeTypes.rdf
 +</code>
 +  - Start firefox again
 +  - Download any file if you had not done this before
 +  - Open that file from the “''Tools > Downloads''” menu (by right-clicking on it and selecting “''Open''“). \\ When asked to choose the application for opening the file, browse to (or type) “''/usr/bin/xdg-open''“, then check the checkbox to “''Remember your choice''“.
 +
 +After you’ve configured Firefox like that, both the  “''Open''” and “''Open containing folder''” context menus will work. If you are running KDE then you can then change the preferred programs through KDE’s “''file associations''” settings.
 +
 +<note tip>The same trick works for Mozilla Seamonkey as well.</note>
 +
 +===== Enable the builtin PDF viewer in Firefox =====
 +
 +The "[[https://github.com/mozilla/pdf.js|pdfjs]]" PDF viewer is built-in in Firefox since version 15.0, this means that there is no need to install a PDF viewer plugin like Adobe Reader additionally. The built-in PDF viewer renders PDF using HTML5 and JavaScript.
 +
 +The PDF viewer is disabled by default, but that is likely going to change in the future, when the functionality has proven itself. In the meantime, you can enable it as follows:
 +
 +  * In "''about:config''" set the property "''browser.preferences.inContent''" to "''true''": \\ {{ :howtos:browser.preferences.incontent.png }}.
 +  * Also in "''about:config''" set the property "''pdfjs.disabled''" to "''false''": \\ {{ :howtos:pdfjs.disabled.png?direct }}.
 +  * Finally, in the Firefox "Preferences > Applications" menu, search for the extension "''PDF''" and make sure the associated action is set to "//preview in firefox//".
 +
 +That's it! You don't even have to restart Firefox. Try opening a PDF, or even drag a PDF file from a filemanager into the Firefox window.
 +
 +====== Troubleshooting ======
 +
 +====== “Open folder containing” opens Audacious instead of a file manager ======
 +
 +Known to work with: [Slack 14.1]
 +
 +  - Edit /usr/share/applications/mimeinfo.cache
 +  - Find the line containing <code>
 +inode/directory=</code>
 +  - Delete the following string <code>
 +audacious.desktop;</code>
 +
 +This should fix the problem.
 +
 +Here's a one-liner to do it:
 +<code>sudo sed -i 's|inode/directory=audacious.desktop;|inode/directory=|' /usr/share/applications/mimeinfo.cache</code>
 +(I made an icon on my desktop with it in the COMMAND line)
 +
 +====== Sources ======
 +
 +  * Originally written by [[wiki:user:arfon | arfon]]
 +  * Originally written by [[wiki:user:alienbob | Eric Hameleers]]
 +  * Taken from an [[http://alien.slackbook.org/blog/make-firefox-understand-downloaded-files/|Alien Pastures]] article.
 +  * Based on a hint in a [[http://www.linuxquestions.org/questions/slackware-14/make-firefox-aware-of-kde-apps-615686/#post4627197|discussion at LinuxQuestions.org]]
 +  * Contributions by [[wiki:user:markand | markand]]
 +
 +{{tag>howtos software firefox author_arfon author_alienbob}}
 howtos:software:firefox ()