[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

This is an old revision of the document!


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:

  1. Stop firefox if it is running
  2. Delete or rename the mimetypes cache (where firefox keeps its file association settings):
    $ rm ~/.mozilla/firefox/<yourprofile>/mimeTypes.rdf
  3. Start firefox again
  4. Download any file if you had not done this before
  5. 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.

The same trick works for Mozilla Seamonkey as well.

Sources

 howtos:software:firefox_downloaded_files ()