diff --git a/sddmauthhelper.cpp b/sddmauthhelper.cpp index c8682ee..f8b165a 100644 --- a/sddmauthhelper.cpp +++ b/sddmauthhelper.cpp @@ -36,6 +36,8 @@ #include #include +#include "src/config.h" + static QSharedPointer openConfig(const QString &filePath) { QFile file(filePath); @@ -212,8 +214,8 @@ ActionReply SddmAuthHelper::reset(const QVariantMap &args) ActionReply SddmAuthHelper::save(const QVariantMap &args) { ActionReply reply = ActionReply::HelperErrorReply(); - QSharedPointer sddmConfig = openConfig(args[QStringLiteral("kde_settings.conf")].toString()); - QSharedPointer sddmOldConfig = openConfig(args[QStringLiteral("sddm.conf")].toString()); + QSharedPointer sddmConfig = openConfig(QStringLiteral(SDDM_CONFIG_DIR "/kde.conf")); + QSharedPointer sddmOldConfig = openConfig(QStringLiteral(SDDM_CONFIG_FILE)); QSharedPointer themeConfig; QString themeConfigFile = args[QStringLiteral("theme.conf.user")].toString();