Bug 495082

Summary: Please remove generic `.conf` extension from the TOML syntax file
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: xofe <xofe_bugzilla>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal CC: jonathan.poelen, walter.von.entferndt
Priority: NOR    
Version First Reported In: 6.6.0   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description xofe 2024-10-20 11:49:34 UTC
SUMMARY
The TOML syntax file, as of commit [1] in KF5 v5.111, is set as the handler for the generic `.conf` file extension, breaking highlighting for XML-using Fontconfig `.conf` files. Could this be removed so mime-type handling is possible again?

STEPS TO REPRODUCE
1. Open a Fontconfig configuration file with `.conf` extension (e.g. `/usr/share/fontconfig/conf.avail/45-latin.conf`) in Kate

OBSERVED RESULT
Fontconfig file opens in Kate with TOML highlighting

EXPECTED RESULT
Fontconfig file opens in Kate with XML highlighting

ADDITIONAL INFORMATION
Having a search through the Git repo, it looks like this has been fixed twice before (`.conf` was removed from Bitbake in 2017 with [2], added to INI in 2018 [3] and removed again in 2019 [4], and now added again to TOML).

[1] https://invent.kde.org/frameworks/syntax-highlighting/-/commit/edf7eae1
[2] https://invent.kde.org/frameworks/syntax-highlighting/-/commit/354bbd21
[3] https://invent.kde.org/frameworks/syntax-highlighting/-/commit/8cc16753
[4] https://invent.kde.org/frameworks/syntax-highlighting/-/commit/71446d3e
Comment 1 Jonathan Poelen 2025-05-20 10:40:34 UTC
I think you can associate it with 440446 (https://bugs.kde.org/show_bug.cgi?id=440446), which offers a selection by MIME type and with different priority levels for each choice.