Continuation of D22191 and is built on top of it. Instead of having a niche option for a cursor theme with all the underlying infrastructure having to support it, grab the cursor them from a KDE config file and write it to the SDDM config file.
Details
Details
Diff Detail
Diff Detail
- Repository
- R123 SDDM Configuration Panel (KCM)
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
This should now be completely functional. In order to proceed further, the dependent revision needs to be landed and then this patch rebased on master.
sddmauthhelper.cpp | ||
---|---|---|
119 | +1 | |
src/advanceconfig.cpp | ||
205 | I need the identifier to delete the entry in the config file (done in sddmauthhelper.cpp), the value is not important so I just set whatever. Any smarter way of doing this? | |
src/ui/advanceconfig.ui | ||
219 | Definitely does, QtDesigner can be weird. Going to undo that. |
src/advanceconfig.cpp | ||
---|---|---|
205 | args[QStringLiteral("kde_settings.conf/Theme/CursorTheme")] = QVariant(); Then in sddmauthhelper, something like if (fileName == QLatin1String("kde_settings.conf")) { if (iterator.value().isValid()) { sddmConfig->group(groupName).writeEntry(keyName, iterator.value()); } else { sddmConfig->group(groupName).deleteEntry(keyName); } sddmOldConfig->group(groupName).deleteEntry(keyName); } } |