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.vala15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 111eb9d..16b8a16 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -142,10 +142,6 @@ public class ArcticaGreeter : Object
{
this.pServer = new DBusServer (pConnection, this);
pConnection.register_object ("/org/ArcticaProject/ArcticaGreeter", this.pServer);
-
- /* Initialize OSK and screen reader as configured in gsettings. */
- this.pServer.ToggleOrca (AGSettings.get_boolean(AGSettings.KEY_SCREEN_READER));
- this.pServer.ToggleOnBoard (AGSettings.get_boolean(AGSettings.KEY_ONSCREEN_KEYBOARD));
}
catch (IOError pError)
{
@@ -487,6 +483,17 @@ public class ArcticaGreeter : Object
main_window.setup_window ();
main_window.show ();
main_window.get_window ().focus (Gdk.CURRENT_TIME);
+
+ try
+ {
+ /* Initialize OSK and screen reader as configured in gsettings. */
+ this.pServer.ToggleOrca (AGSettings.get_boolean(AGSettings.KEY_SCREEN_READER));
+ this.pServer.ToggleOnBoard (AGSettings.get_boolean(AGSettings.KEY_ONSCREEN_KEYBOARD));
+ }
+ catch (Error pError)
+ {
+ error ("%s\n", pError.message);
+ }
}
public bool is_authenticated ()