kdePackages.plasma-workspace: stop accidentally duplicating fontconfig config

This commit is contained in:
K900
2026-03-29 11:24:24 +03:00
parent da9e3c5a17
commit da3a69c9b3
2 changed files with 18 additions and 0 deletions
@@ -37,6 +37,9 @@ mkKdeDerivation {
# @QtBinariesDir@ only appears in the *removed* lines of the diff
QtBinariesDir = null;
})
# stop accidentally duplicating fontconfig configs
./fontconfig.patch
];
outputs = [
@@ -0,0 +1,15 @@
diff --git a/kcms/fonts/kxftconfig.cpp b/kcms/fonts/kxftconfig.cpp
index b67d885de7..d5c469687a 100644
--- a/kcms/fonts/kxftconfig.cpp
+++ b/kcms/fonts/kxftconfig.cpp
@@ -310,6 +310,10 @@ bool KXftConfig::apply()
m_excludePixelRange.from = (int)point2Pixel(m_excludeRange.from);
m_excludePixelRange.to = (int)point2Pixel(m_excludeRange.to);
+ // Ensure m_doc is the config file we want
+ m_doc.clear();
+ parseConfigFile(m_file);
+
FcAtomic *atomic = FcAtomicCreate((const unsigned char *)(QFile::encodeName(m_file).data()));
ok = false;