A new user interface for you! Read more...

File set-default-session-to-plasma5-for-autologin.patch of Package kcm_sddm

Index: sddm-kcm-5.12.2/src/advanceconfig.cpp
===================================================================
--- sddm-kcm-5.12.2.orig/src/advanceconfig.cpp
+++ sddm-kcm-5.12.2/src/advanceconfig.cpp
@@ -90,7 +90,7 @@ void AdvanceConfig::load()
     const QString currentUser = mConfig->group("Autologin").readEntry("User", "");
     configUi->userList->setCurrentIndex(userModel->indexOf(currentUser));
 
-    const QString autologinSession = mConfig->group("Autologin").readEntry("Session", "");
+    const QString autologinSession = mConfig->group("Autologin").readEntry("Session", "plasma5.desktop");
     configUi->sessionList->setCurrentIndex(sessionModel->indexOf(autologinSession));
 
     configUi->autoLogin->setChecked(!currentUser.isEmpty());
@@ -123,7 +123,9 @@ QVariantMap AdvanceConfig::save()
     }
 
     args["sddm.conf/Autologin/User"] = ( configUi->autoLogin->isChecked() ) ? configUi->userList->currentText() : "";
-    args["sddm.conf/Autologin/Session"] = ( configUi->autoLogin->isChecked() ) ? configUi->sessionList->currentData() : "";
+    if (configUi->autoLogin->isChecked()) { // only save the Autologin session if Autologin is actually enabled otherwise we would override the default session with "" if disabled
+        args["sddm.conf/Autologin/Session"] = configUi->sessionList->currentData();
+    }
 
     args["sddm.conf/Autologin/Relogin"] = configUi->reloginAfterQuit->isChecked();
     //TODO session