diff --git a/decorations/decorationpalette.cpp b/decorations/decorationpalette.cpp index e37eeaf88f..f7036d6be8 100644 --- a/decorations/decorationpalette.cpp +++ b/decorations/decorationpalette.cpp @@ -41,7 +41,7 @@ DecorationPalette::DecorationPalette(const QString &colorScheme) ? colorScheme : QStandardPaths::locate(QStandardPaths::GenericConfigLocation, colorScheme)) { - if (m_colorScheme.isEmpty() && colorScheme == QStringLiteral("kdeglobals")) { + if (!m_colorScheme.startsWith(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation)) && colorScheme == QStringLiteral("kdeglobals")) { // kdeglobals doesn't exist so create it. This is needed to monitor it using QFileSystemWatcher. auto config = KSharedConfig::openConfig(colorScheme, KConfig::SimpleConfig); KConfigGroup wmConfig(config, QStringLiteral("WM"));