--- startkde/startplasma.cpp.orig	2024-06-28 14:13:43 UTC
+++ startkde/startplasma.cpp
@@ -362,7 +362,7 @@ void setupPlasmaEnvironment()
     // Add kdedefaults dir to allow config defaults overriding from a writable location
     QByteArray currentConfigDirs = qgetenv("XDG_CONFIG_DIRS");
     if (currentConfigDirs.isEmpty()) {
-        currentConfigDirs = "/etc/xdg";
+        currentConfigDirs = "%%LOCALBASE%%/etc/xdg:/etc/xdg";
     }
     const QString extraConfigDir = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1String("/kdedefaults");
     QDir().mkpath(extraConfigDir);
