on xenial help sign in
Set the session key for integrated lightdm
commit51bc4e199bb45e300740593f64450c28ddc6b47c authorJosh Arenson <joshua.arenson@canonical.com> dateFri 24 Jun 2016, 08:47 (10 years ago) parentebaf087
1 file changed+4−1
plugins/LightDM/IntegratedLightDM/liblightdm/SessionsModelPrivate.cpp+4−1
plugins/LightDM/IntegratedLightDM/liblightdm/SessionsModelPrivate.cpp+4−1
@@ -27,7 +27,10 @@ namespace QLightDM
2727SessionsModelPrivate::SessionsModelPrivate(SessionsModel* parent)
2828 : q_ptr(parent)
2929{
30− sessionItems.append({"", "", qgetenv("XDG_SESSION_DESKTOP"), ""});
30+ // Since this model is never visible, as there is only 1 session,
31+ // just use the session name as the key
32+ QString sessionName = qgetenv("XDG_SESSION_DESKTOP");
33+ sessionItems.append({sessionName, "", sessionName, ""});
3134}
3235
3336} // namespace QLightDM