I'm trying to open .docx files from the Outlook Web App, viewed in Firefox, with LibreOffice. LibreOffice is installed on my computer and the default application for opening .docx files. What's more, in the preferences->applications of Firefox, I see LibreOffice Writer as the default for Microsoft Word files and don't see any other entry for .docx files. But when I click on an attached .docx file, Firefox asks me whether to download it or open it with gedit. If I manually choose lowriter from this dialog, Firefox doesn't remember this choice and let me pick it afterward.
UPDATE: I noticed something strange - it seems like this doesn't happen for all .docx files, but rather for files whose name starts with a number(for example, 1234.docx).
Files with alphabetical prefixes are opened fine by Firefox (for example, abcd.docx).
Any ideas? I'd love to be able to open these files in one click, instead of downloading them and only then opening them in Writer.