Команда может быть примерно такой:
xdg-mime query default `xdg-mime query filetype example.odp`
Результат:
libreoffice-impress.desktop