aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-24 22:16:01 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-24 22:16:01 +0100
commitc99e78a2de7c1be629fb0c343e43d0c98ab1ebe0 (patch)
treecc5a3d8da4223e40d54542bef278ec9099eeb90a /src/arctica-greeter.vala
parent75f05d20031099cef0a3874dbb8db1fc82440f7c (diff)
downloadarctica-greeter-c99e78a2de7c1be629fb0c343e43d0c98ab1ebe0.tar.gz
arctica-greeter-c99e78a2de7c1be629fb0c343e43d0c98ab1ebe0.tar.bz2
arctica-greeter-c99e78a2de7c1be629fb0c343e43d0c98ab1ebe0.zip
Use ArcticaGreeter's way of detecting the default session, only fallback to LightDMs default if absolutely necessary.
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r--src/arctica-greeter.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 3de7b29..68c8887 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -220,6 +220,7 @@ public class ArcticaGreeter : Object
foreach (string session in sessions) {
var path = Path.build_filename ("/usr/share/wayland-sessions/", session.concat(".desktop"), null);
if (FileUtils.test (path, FileTest.EXISTS)) {
+ debug ("Using %s as default (Wayland) session.", session);
return session;
}
}
@@ -227,6 +228,7 @@ public class ArcticaGreeter : Object
foreach (string session in sessions) {
var path = Path.build_filename ("/usr/share/xsessions/", session.concat(".desktop"), null);
if (FileUtils.test (path, FileTest.EXISTS)) {
+ debug ("Using %s as default (X11) session.", session);
return session;
}
}