From 9734921d9c6d80adfdffdcd6880e45320fb49fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sat, 19 Oct 2019 19:16:25 +0200 Subject: [PATCH] gui: set keyboard layout from feature --- qubes/ext/gui.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qubes/ext/gui.py b/qubes/ext/gui.py index 6e2ec0f1..03e63af7 100644 --- a/qubes/ext/gui.py +++ b/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', '')