Skip to content

Commit

Permalink
gui: set keyboard layout from feature
Browse files Browse the repository at this point in the history
  • Loading branch information
fepitre committed Oct 19, 2019
1 parent aa3d731 commit 54a9e26
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qubes/ext/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,10 @@ def on_domain_qdb_create(self, vm, event):
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['kbd_layout']
vm.untrusted_qdb.write('/keyboard-layout', kbd_layout)
except AttributeError:
vm.untrusted_qdb.write('/keyboard-layout', '')

0 comments on commit 54a9e26

Please sign in to comment.