Commit 634a2dd1 authored by David Edmundson's avatar David Edmundson

Fix autologin session loading

SDDM config stored the autologin value to be in the form




This patch strips the .desktop argument away in our list so that initial
selection works.

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision:
parent 25e36e90
......@@ -64,7 +64,7 @@ void SessionModel::loadDir(const QString &path, SessionType type)
QFile inputFile(dir.absoluteFilePath(session));
if (!
SessionPtr si { new Session { session, "", "", "" } };
SessionPtr si { new Session { session.chopped(strlen(".desktop")), QString(), QString(), QString() } };
bool isHidden = false;
QString current_section;
QTextStream in(&inputFile);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment