gui: set keyboard layout from feature

This commit is contained in:
Frédéric Pierret (fepitre) 2019-10-19 19:16:25 +02:00
parent 27aad9bd38
commit 9734921d9c
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -66,3 +66,10 @@ class GUI(qubes.ext.Extension):
str(vm.guivm.xid)) str(vm.guivm.xid))
except AttributeError: except AttributeError:
vm.untrusted_qdb.write('/qubes-gui-domain-xid', '') 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', '')