aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r--src/arctica-greeter.vala13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 2ede4c5..cacfdac 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -248,14 +248,11 @@ public class ArcticaGreeter : Object
var sessions = new List<string> ();
sessions.append ("lightdm-xsession");
- // FIXME: this list should be obtained from AGSettings, ideally...
- sessions.append ("mate");
- sessions.append ("xfce");
- sessions.append ("kde-plasma");
- sessions.append ("kde");
- sessions.append ("gnome");
- sessions.append ("cinnamon");
- sessions.append ("lomiri");
+ var preferred_sessions = AGSettings.get_strv (AGSettings.KEY_PREFERRED_SESSIONS);
+
+ foreach (var preferred_session in preferred_sessions) {
+ sessions.append (preferred_session);
+ }
if (!AGSettings.get_boolean (AGSettings.KEY_HIDE_WAYLAND_SESSIONS)) {
foreach (string session in sessions) {