aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/main.vala10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/main.vala b/lib/main.vala
index 485f37a4..7daba518 100644
--- a/lib/main.vala
+++ b/lib/main.vala
@@ -251,6 +251,16 @@ public class Indicator.Keyboard.Service : Object {
}
}
+ if (list.size == 0) {
+ var layout = LightDM.get_layout ();
+
+ var source = layout.name;
+ source = source.replace (" ", "+");
+ source = source.replace ("\t", "+");
+
+ list.add (source);
+ }
+
var builder = new VariantBuilder (new VariantType ("a(ss)"));
foreach (var layout in list) {