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, 13 insertions, 0 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 94a1eb0..2def301 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -580,6 +580,16 @@ public class ArcticaGreeter
greeter_ready ();
}
+ private static void set_keyboard_layout ()
+ {
+ try {
+ Process.spawn_command_line_sync(Path.build_filename (Config.PKGLIBEXECDIR, "arctica-greeter-set-keyboard-layout"), null, null, null);
+ }
+ catch (Error e){
+ warning ("Error while setting the keyboard layout: %s", e.message);
+ }
+ }
+
private static void activate_numlock ()
{
try {
@@ -651,6 +661,9 @@ public class ArcticaGreeter
if (do_test_mode)
debug ("Running in test mode");
+ /* Set the keyboard layout */
+ set_keyboard_layout ();
+
/* Set the numlock state */
if (AGSettings.get_boolean (AGSettings.KEY_ACTIVATE_NUMLOCK)) {
debug ("Activating numlock");