Bug 433352

Summary: Kate tries to open .otf files by default
Product: [Applications] systemsettings Reporter: Emily Graham <haashahash>
Component: kcm_filetypesAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdedev, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.21.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.