https://bugs.kde.org/show_bug.cgi?id=439790

--- Comment #2 from Jan Paul Batrina <jpmbatrin...@gmail.com> ---
After a bit more poking, I have confirmed that the errors are coming from
dolphin/KIO, but the bug is still for kate/ktexteditor. Specifically, the
errors when the mouse hovers over a kate theme file are coming from the
KDesktopFile constructor in this line
https://invent.kde.org/frameworks/kio/-/blob/master/src/core/kfileitem.cpp#L895.
I haven't located exactly where the errors for the recent files come from, but
I expect they are of similar nature since they also appear in dolphin.

e.g. xdg-mime query filetype export.theme returns application/x-theme, which
apparently inherits application/x-desktop. Thus it is treated by KIO as a
desktop file which is in INI format but the kate theme files are in JSON.

The .theme file extension is also used by GTK themes (e.g.
vhttps://github.com/adapta-project/adapta-gtk-theme/blob/master/gtk/index.theme),
which are indeed in INI format, and this probably is the reason why an INI is
expected. FWIW dock also uses an INI .theme file for themes (e.g.
https://github.com/nana-4/materia-theme/blob/master/src/plank/dock.theme), but
that might just be a coincidence.

I think the simplest fix (not necessarily the easiest) is to use a different
file extension for kate color themes (e.g. .ktetheme, .kshltheme). This would
require (minor) changes to KTextEditor and KSyntaxHighlighting, but also might
require special (transitional) handling for existing installations and third
party themes.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to