ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 5 ردود
  • 2 have this problem
  • 10 views
  • آخر ردّ كتبه cor-el

more options

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.

All Replies (5)

more options

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

more options

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

more options

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:

more options

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 (:

more options

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