Home
Phabricator
Search
Log In
Paste
P521
Masterwork From Distant Lands
Active
Public
Actions
Authored by
davidedmundson
on Jan 22 2020, 2:38 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/sddmauthhelper.cpp b/sddmauthhelper.cpp
index c8682ee..f8b165a 100644
--- a/sddmauthhelper.cpp
+++ b/sddmauthhelper.cpp
@@ -36,6 +36,8 @@
#include <KUser>
#include <KZip>
+#include "src/config.h"
+
static QSharedPointer<KConfig> 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<KConfig> sddmConfig = openConfig(args[QStringLiteral("kde_settings.conf")].toString());
- QSharedPointer<KConfig> sddmOldConfig = openConfig(args[QStringLiteral("sddm.conf")].toString());
+ QSharedPointer<KConfig> sddmConfig = openConfig(QStringLiteral(SDDM_CONFIG_DIR "/kde.conf"));
+ QSharedPointer<KConfig> sddmOldConfig = openConfig(QStringLiteral(SDDM_CONFIG_FILE));
QSharedPointer<KConfig> themeConfig;
QString themeConfigFile = args[QStringLiteral("theme.conf.user")].toString();
davidedmundson
edited the content of this paste.
(Show Details)
Jan 22 2020, 2:38 PM
davidedmundson
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment