https://bugs.kde.org/show_bug.cgi?id=517478
Bug ID: 517478
Summary: Custom color schemes in ~/.local/share/konsole/ are
not loaded
Classification: Applications
Product: QMLKonsole
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: General
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
Custom .colorscheme files placed in ~/.local/share/konsole/ (the standard
Konsole color scheme directory) are not loaded.
STEPS TO REPRODUCE
1. Place a valid .colorscheme file (e.g. Dracula.colorscheme from
https://draculatheme.com/konsole) in ~/.local/share/konsole/
2. Set colorScheme=Dracula in ~/.config/qmlkonsolerc
3. Open qmlkonsole
OBSERVED RESULT
The custom color scheme is not applied. The terminal falls back to the default
scheme.
EXPECTED RESULT
External .colorscheme files in ~/.local/share/konsole/ should be discovered and
loaded, matching Konsole's behavior. The custom scheme should appear in
Settings and be applied when selected.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 6.6.2
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
OS: postmarketOS edge (Alpine Linux), aarch64
Kernel: 6.16.7-sdm845
Device: OnePlus 6
ADDITIONAL INFORMATION
The root cause is in lib/tools.cpp. The colorSchemesDirs() function returns
only the embedded Qt resource path:
const QStringList colorSchemesDirs()
{
return {QStringLiteral(":/konsoleqml/color-schemes/")};
}
The code already has an add_custom_color_scheme_dir() function and a
custom_color_schemes_dirs list (lines 23-31), but colorSchemesDirs() never
includes them — they are dead code.
A one-line fix restores external color scheme loading:
const QStringList colorSchemesDirs()
{
QStringList dirs = {QStringLiteral(":/konsoleqml/color-schemes/")};
dirs << QDir::homePath() + QStringLiteral("/.local/share/konsole");
dirs << QStringLiteral("/usr/share/konsole");
dirs << custom_color_schemes_dirs;
return dirs;
}
Tested on qmlkonsole 25.12.3 — the fix allows external schemes (including
Dracula) to load correctly alongside the bundled ones. Happy to submit a merge
request.
--
You are receiving this mail because:
You are watching all bug changes.