diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arctica-greeter.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index 76b2279..45a98ba 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -582,6 +582,12 @@ public class ArcticaGreeter private static void set_keyboard_layout () { + + /* Avoid expensive Python execution where possible */ + if (!FileUtils.test("/etc/default/keyboard", FileTest.EXISTS)) { + return; + } + try { Process.spawn_command_line_sync(Path.build_filename (Config.PKGLIBEXECDIR, "arctica-greeter-set-keyboard-layout"), null, null, null); } |