X
Tap here to go to the mobile version of the site.

Support Forum

Application missing from "Applications" dialog, so how can I set it to "Always Ask"?

Posted

When I download some file types, such as CSV or JSON, they automatically open in LibreOffice.

I want to use a different program for JSON files.

However, when I navigate to the "Applications" settings dialog, none of these file types are listed. There is no entry for CSV, nor for JSON, nor are there any mentions of LibreOffice whatsoever.

This dialog does not let me add new file types, so I am at a loss as to how to change this behavior.

Are these settings hidden away somewhere in my profile directory, perhaps? Can I edit them there?

Note: The same occurs if I click on the downloaded file from the "Downloads" list.

When I download some file types, such as CSV or JSON, they automatically open in LibreOffice. I want to use a different program for JSON files. However, when I navigate to the "Applications" settings dialog, none of these file types are listed. There is no entry for CSV, nor for JSON, nor are there any mentions of LibreOffice whatsoever. This dialog does not let me add new file types, so I am at a loss as to how to change this behavior. Are these settings hidden away somewhere in my profile directory, perhaps? Can I edit them there? Note: The same occurs if I click on the downloaded file from the "Downloads" list.

Additional System Details

Application

  • Firefox 36.0
  • User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
  • Support URL: https://support.mozilla.org/1/firefox/36.0/Linux/en-US/

Extensions

  • ChatZilla 0.9.92 ({59c81df5-4b7a-477b-912d-4e0fdf64e5f2})
  • cliget 1.2.3.1-signed (cliget@zaidabdulla.com)
  • It's All Text! 1.9.2 (itsalltext@docwhat.gerf.org)
  • Restartless Restart 9.1-signed (restartless.restart@erikvold.com)
  • Stylish 2.0.2.1-signed ({46551EC9-40F0-4e47-8E18-8E5CF550CFB8})
  • Tab Mix Plus 0.4.1.9 ({dc572301-7619-498c-a57d-39143191b318})
  • The Addon Bar (restored) 3.2.1-signed (the-addon-bar@GeekInTraining-GiT)
  • TinEye Reverse Image Search 1.2.1 (tineye@ideeinc.com)
  • FireShot 0.98.75 ({0b457cAA-602d-484a-8fe7-c1d894a011ba}) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: GLXtest process failed (exited with status 1): GLX extension missing
  • adapterDeviceID:
  • adapterDrivers:
  • adapterRAM:
  • adapterVendorID:
  • driverDate:
  • driverVersion:
  • info: {u'AzureCanvasBackend': u'cairo', u'AzureFallbackCanvasBackend': u'none', u'AzureContentBackend': u'cairo', u'AzureSkiaAccelerated': 0}
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'tryNewerDriver', u'<Anything with EXT_texture_from_pixmap support>']
  • numTotalWindows: 7
  • webglRendererMessage: [u'blockedGfxCard']
  • windowLayerManagerRemote: False
  • windowLayerManagerType: Basic

Modified Preferences

Misc

  • User JS: No
  • Accessibility: No

Question owner

Note: I suppose this might be related to this 3-year-old-but-not-fixed bug: https://bugzilla.mozilla.org/show_bug.cgi?id=727422

Note: I suppose this might be related to this 3-year-old-but-not-fixed bug: https://bugzilla.mozilla.org/show_bug.cgi?id=727422
FredMcD
  • Top 10 Contributor
4306 solutions 60468 answers

Go to the "Applications" page, and use its search bar.

Go to the "Applications" page, and use its search bar.
cor-el
  • Top 10 Contributor
  • Moderator
17679 solutions 159921 answers

Helpful Reply

The file action usually depends on with what content-type the server sends the file.

You can use the Live Http Headers extension to check the content type.

If the server sends the file as a generic type like "application/octet-stream" then you can't set an action, but that wouldn't happen if a specific application is chosen.

You can check the mimeTypes.rdf file in the Firefox profile folder for a reference to the file extension.

You can use this button to go to the current Firefox profile folder:

The file action usually depends on with what content-type the server sends the file. You can use the Live Http Headers extension to check the content type. *https://addons.mozilla.org/firefox/addon/live-http-headers/ If the server sends the file as a generic type like "application/octet-stream" then you can't set an action, but that wouldn't happen if a specific application is chosen. You can check the mimeTypes.rdf file in the Firefox profile folder for a reference to the file extension. *http://kb.mozillazine.org/mimeTypes.rdf You can use this button to go to the current Firefox profile folder: *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder) *http://kb.mozillazine.org/Profile_folder_-_Firefox

Question owner

cor-el said

The file action usually depends on with what content-type the server sends the file.

It is true that the server is giving a bogus content type.

However, that can't be the full issue, since I have the same problem when clicking the downloaded file in the "Downloads" listing.

Further, different applications are launched for the .json vs .csv file, so FireFox is clearly somehow distinguishing them (Writer is opened for one, Calc for the other).

You can check the mimeTypes.rdf file in the Firefox profile folder for a reference to the file extension.

There is no mention of libreoffice in here whatsoever.

This is on Linux, and it seems like application selection is a bit messy there (see the bug I referenced), so i'm not 100% sure where that info is coming from.

Possibly /usr/share/applications/mimeinfo.cache, which it really should not be using (again, see bug).

Bleh, this is a bit of a rabbit hole (:

''cor-el [[#answer-801719|said]]'' <blockquote> The file action usually depends on with what content-type the server sends the file. </blockquote> It is true that the server is giving a bogus content type. However, that can't be the full issue, since I have the same problem when clicking the downloaded file in the "Downloads" listing. Further, different applications are launched for the .json vs .csv file, so FireFox is clearly somehow distinguishing them (Writer is opened for one, Calc for the other). <blockquote> You can check the mimeTypes.rdf file in the Firefox profile folder for a reference to the file extension. </blockquote> There is no mention of libreoffice in here whatsoever. This is on Linux, and it seems like application selection is a bit messy there (see the bug I referenced), so i'm not 100% sure where that info is coming from. Possibly /usr/share/applications/mimeinfo.cache, which it really should not be using (again, see bug). Bleh, this is a bit of a rabbit hole (:
cor-el
  • Top 10 Contributor
  • Moderator
17679 solutions 159921 answers

You can use a command like this in a terminal window to check (query) the default application and set the default application.

  • MIME type:
    xdg-mime query default application/pdf
  • File extension:
    xdg-mime query filetype *.pdf
  • Set default application for a MIME type:
    xdg-mime default evince-2.desktop application/pdf
You can use a command like this in a terminal window to check (query) the default application and set the default application. *MIME type:<br />xdg-mime query default application/pdf *File extension:<br />xdg-mime query filetype *.pdf *Set default application for a MIME type:<br />xdg-mime default evince-2.desktop application/pdf