$ xdg-mime query filetype my-time-sheet.ods 

$ xdg-mime query default application/vnd.oasis.opendocument.spreadsheet
calc.desktop calc.desktop

$ xdg-open my-time-sheet.ods 

One would expect that the last command would open calc.desktop, but instead the file path is opened in Firefox. Why is this?


calc.desktop calc.desktop

If it is set correctly, "calc.desktop" is displayed only once.
This is repaired by re-setting.

xdg-mime default calc.desktop application/vnd.oasis.opendocument.spreadsheet
# (or edit ~/.local/share/applications/mimeapps.list)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.