aboutsummaryrefslogtreecommitdiff
path: root/src/greeter-list.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-03-01 12:36:02 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-03-01 13:40:38 +0100
commit812b0987119a199e6559b6ba9c96797b3cf33525 (patch)
treed048c682a0a58db40494e411e3e88ba8ea36f3d4 /src/greeter-list.vala
parent4e6b30fc4592cf6bd56945d64ac2172a0232ef2a (diff)
downloadarctica-greeter-812b0987119a199e6559b6ba9c96797b3cf33525.tar.gz
arctica-greeter-812b0987119a199e6559b6ba9c96797b3cf33525.tar.bz2
arctica-greeter-812b0987119a199e6559b6ba9c96797b3cf33525.zip
src/arctica-greeter.vala: Don't launch Lomiri-related DBus listeners in test mode. Allows one to run arctica-greeter in test-mode within a Lomiri session.
Diffstat (limited to 'src/greeter-list.vala')
-rw-r--r--src/greeter-list.vala17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/greeter-list.vala b/src/greeter-list.vala
index f9ec31d..3c5af9f 100644
--- a/src/greeter-list.vala
+++ b/src/greeter-list.vala
@@ -184,13 +184,16 @@ public abstract class GreeterList : FadableBox
scroll_timer = new AnimateTimer (AnimateTimer.ease_out_quint, AnimateTimer.FAST);
scroll_timer.animate.connect (animate_scrolling);
- try
- {
- Bus.get.begin (BusType.SESSION, null, on_bus_acquired);
- }
- catch (IOError e)
- {
- debug ("Error getting session bus: %s", e.message);
+ greeter = new ArcticaGreeter();
+ if (!greeter.test_mode) {
+ try
+ {
+ Bus.get.begin (BusType.SESSION, null, on_bus_acquired);
+ }
+ catch (IOError e)
+ {
+ debug ("Error getting session bus: %s", e.message);
+ }
}
}