Bug 433352 - Kate tries to open .otf files by default
Summary: Kate tries to open .otf files by default
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_filetypes (show other bugs)
Version: 5.21.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-20 22:04 UTC by Emily Graham
Modified: 2022-08-10 18:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emily Graham 2021-02-20 22:04:34 UTC
When opening .otf files, Kate is the default application instead of KFontView.

STEPS TO REPRODUCE
1. Acquire a font that is in .otf format
2. Try to open it with a double-click
3. Watch Kate cry

OBSERVED RESULT
Kate attempted to open the .otf file when I double-clicked it and could only display gibberish. With .ttf files, KFontView opened them on a double-click and it worked fine.

EXPECTED RESULT
KFontView should automatically open .otf files on a double-click.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.21
KDE Frameworks Version: 5.79
Qt Version: 5.15.2
Comment 1 Nate Graham 2021-02-20 22:16:40 UTC
Confirmed. I think I see the problem: the file associations KCM has *.otf listed as the filename pattern for File type "application/vnd.oasis.opendocument.formula-template", AKA "OpenDocument Template" The actual filename extension for this file type is ".ott", not ".otf".
Comment 2 Nate Graham 2021-02-20 22:17:26 UTC
Of course that implies that LibreOffice Math should try to open it rather than kate, but clearly the duplicated entries for *.otf is the main problem here.