Browse Source

gui: set keyboard layout from feature

Frédéric Pierret (fepitre) 5 years ago
parent
commit
9734921d9c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      qubes/ext/gui.py

+ 7 - 0
qubes/ext/gui.py

@@ -66,3 +66,10 @@ class GUI(qubes.ext.Extension):
                                            str(vm.guivm.xid))
         except AttributeError:
             vm.untrusted_qdb.write('/qubes-gui-domain-xid', '')
+
+        # Add keyboard layout from that of GuiVM
+        try:
+            kbd_layout = vm.guivm.features['keyboard-layout']
+            vm.untrusted_qdb.write('/keyboard-layout', kbd_layout)
+        except AttributeError:
+            vm.untrusted_qdb.write('/keyboard-layout', '')