diff options
Diffstat (limited to 'src/greeter-list.vala')
-rw-r--r-- | src/greeter-list.vala | 17 |
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); + } } } |