Changeset View
Changeset View
Standalone View
Standalone View
sddmauthhelper.cpp
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Line(s) | 68 | { | |||
---|---|---|---|---|---|
109 | 109 | | |||
110 | // copy plasmarc (icons, UI style) | 110 | // copy plasmarc (icons, UI style) | ||
111 | if (!args[QStringLiteral("plasmarc")].isNull()) { | 111 | if (!args[QStringLiteral("plasmarc")].isNull()) { | ||
112 | QDir plasmarcSource(args[QStringLiteral("plasmarc")].toString()); | 112 | QDir plasmarcSource(args[QStringLiteral("plasmarc")].toString()); | ||
113 | QDir plasmarcDestination(sddmConfigLocation.path() + QStringLiteral("/plasmarc")); | 113 | QDir plasmarcDestination(sddmConfigLocation.path() + QStringLiteral("/plasmarc")); | ||
114 | copyFile(plasmarcSource.path(), plasmarcDestination.path()); | 114 | copyFile(plasmarcSource.path(), plasmarcDestination.path()); | ||
115 | } | 115 | } | ||
116 | 116 | | |||
117 | // write cursor theme and NumLock preference to config file | 117 | // write cursor theme, scaling DPI, and NumLock preference to config file | ||
118 | ActionReply reply = ActionReply::HelperErrorReply(); | 118 | ActionReply reply = ActionReply::HelperErrorReply(); | ||
119 | QSharedPointer<KConfig> sddmConfig = openConfig(args[QStringLiteral("kde_settings.conf")].toString()); | 119 | QSharedPointer<KConfig> sddmConfig = openConfig(args[QStringLiteral("kde_settings.conf")].toString()); | ||
120 | QSharedPointer<KConfig> sddmOldConfig = openConfig(args[QStringLiteral("sddm.conf")].toString()); | 120 | QSharedPointer<KConfig> sddmOldConfig = openConfig(args[QStringLiteral("sddm.conf")].toString()); | ||
121 | 121 | | |||
122 | QMap<QString, QVariant>::const_iterator iterator; | 122 | QMap<QString, QVariant>::const_iterator iterator; | ||
123 | 123 | | |||
124 | for (iterator = args.constBegin() ; iterator != args.constEnd() ; ++iterator) { | 124 | for (iterator = args.constBegin() ; iterator != args.constEnd() ; ++iterator) { | ||
125 | if (iterator.key() == QLatin1String("kde_settings.conf")) | 125 | if (iterator.key() == QLatin1String("kde_settings.conf")) | ||
Show All 25 Lines | |||||
151 | { | 151 | { | ||
152 | QDir sddmConfigLocation(args[QStringLiteral("sddmUserConfig")].toString()); | 152 | QDir sddmConfigLocation(args[QStringLiteral("sddmUserConfig")].toString()); | ||
153 | QDir fontconfigDir(args[QStringLiteral("sddmUserConfig")].toString() + QStringLiteral("/fontconfig")); | 153 | QDir fontconfigDir(args[QStringLiteral("sddmUserConfig")].toString() + QStringLiteral("/fontconfig")); | ||
154 | 154 | | |||
155 | fontconfigDir.removeRecursively(); | 155 | fontconfigDir.removeRecursively(); | ||
156 | QFile::remove(sddmConfigLocation.path() + QStringLiteral("/kdeglobals")); | 156 | QFile::remove(sddmConfigLocation.path() + QStringLiteral("/kdeglobals")); | ||
157 | QFile::remove(sddmConfigLocation.path() + QStringLiteral("/plasmarc")); | 157 | QFile::remove(sddmConfigLocation.path() + QStringLiteral("/plasmarc")); | ||
158 | 158 | | |||
159 | // remove cursor theme and NumLock preference from config file | 159 | // remove cursor theme, scaling DPI, and NumLock preference from config file | ||
160 | ActionReply reply = ActionReply::HelperErrorReply(); | 160 | ActionReply reply = ActionReply::HelperErrorReply(); | ||
161 | QSharedPointer<KConfig> sddmConfig = openConfig(args[QStringLiteral("kde_settings.conf")].toString()); | 161 | QSharedPointer<KConfig> sddmConfig = openConfig(args[QStringLiteral("kde_settings.conf")].toString()); | ||
162 | QSharedPointer<KConfig> sddmOldConfig = openConfig(args[QStringLiteral("sddm.conf")].toString()); | 162 | QSharedPointer<KConfig> sddmOldConfig = openConfig(args[QStringLiteral("sddm.conf")].toString()); | ||
163 | 163 | | |||
164 | QMap<QString, QVariant>::const_iterator iterator; | 164 | QMap<QString, QVariant>::const_iterator iterator; | ||
165 | 165 | | |||
166 | for (iterator = args.constBegin() ; iterator != args.constEnd() ; ++iterator) { | 166 | for (iterator = args.constBegin() ; iterator != args.constEnd() ; ++iterator) { | ||
167 | if (iterator.key() == QLatin1String("kde_settings.conf")) | 167 | if (iterator.key() == QLatin1String("kde_settings.conf")) | ||
▲ Show 20 Lines • Show All 211 Lines • Show Last 20 Lines |