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

Fix autologin session loading

Summary:
SDDM config stored the autologin value to be in the form

Session=Plasma

not

Session=Plasma.desktop

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: https://phabricator.kde.org/D18765
parent 25e36e90
......@@ -64,7 +64,7 @@ void SessionModel::loadDir(const QString &path, SessionType type)
QFile inputFile(dir.absoluteFilePath(session));
if (!inputFile.open(QIODevice::ReadOnly))
continue;
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