on xenial help sign in
Remove antiquated directory reference.
commit324bce8e8c0136377a3808613b8d8fe9ecca24c8 authorJosh Arenson <joshua.arenson@canonical.com> dateMon 21 Mar 2016, 13:20 (11 years ago) parent0619965
1 file changed+1−9
plugins/LightDM/IntegratedLightDM/liblightdm/SessionsModelPrivate.cpp+1−9
plugins/LightDM/IntegratedLightDM/liblightdm/SessionsModelPrivate.cpp+1−9
@@ -27,15 +27,7 @@ namespace QLightDM
2727SessionsModelPrivate::SessionsModelPrivate(SessionsModel* parent)
2828 : q_ptr(parent)
2929{
30− QSettings settings(QDir::homePath() + "/.unity8-greeter-demo", QSettings::NativeFormat);
31− const QStringList sessions = settings.value(QStringLiteral("sessions"), QStringList() << qgetenv("DESKTOP_SESSION")).toStringList();
32−
33− sessionItems.reserve(sessions.count());
34− Q_FOREACH(const QString& session, sessions)
35− {
36− sessionItems.append({"", "", session, ""});
37− }
38−
30+ sessionItems.append({"", "", qgetenv("XDG_SESSION_DESKTOP"), ""});
3931}
4032
4133} // namespace QLightDM