diff --git a/src/advanceconfig.cpp b/src/advanceconfig.cpp --- a/src/advanceconfig.cpp +++ b/src/advanceconfig.cpp @@ -161,6 +161,10 @@ KConfigGroup numLockConfigGroup(&numLockConfig, "Keyboard"); QString numLock = numLockConfigGroup.readEntry("NumLock"); + KConfig plasmaFontConfig(QStringLiteral("kdeglobals")); + KConfigGroup plasmaFontGroup(&plasmaFontConfig, "General"); + QString plasmaFont = plasmaFontGroup.readEntry("font"); + // define paths const QString fontconfigPath = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, QStringLiteral("fontconfig"), QStandardPaths::LocateDirectory); const QString kdeglobalsPath = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, QStringLiteral("kdeglobals")); @@ -203,6 +207,13 @@ qDebug() << "Cannot find NumLock value."; } + if (!plasmaFont.isEmpty()) { + args[QStringLiteral("kde_settings.conf/Theme/Font")] = plasmaFont; + } + else { + qDebug() << "Cannot find Plasma font value."; + } + if (!fontconfigPath.isEmpty()) { args[QStringLiteral("fontconfig")] = fontconfigPath; } @@ -271,6 +282,8 @@ args[QStringLiteral("kde_settings.conf/General/Numlock")] = QVariant(); + args[QStringLiteral("kde_settings.conf/Theme/Font")] = QVariant(); + KAuth::Action resetAction(QStringLiteral("org.kde.kcontrol.kcmsddm.reset")); resetAction.setHelperId(QStringLiteral("org.kde.kcontrol.kcmsddm")); resetAction.setArguments(args);