gui: no check in subprocess.run

This commit is contained in:
Frédéric Pierret (fepitre) 2020-02-13 22:31:33 +01:00
parent dbacd07b43
commit 2e1290eec1
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -84,7 +84,8 @@ class GUI(qubes.ext.Extension):
# Legacy value for setting keyboard layout
try:
xkb_keymap = subprocess.run(['/usr/bin/setxkbmap', '-print'],
stdout=subprocess.PIPE)
stdout=subprocess.PIPE,
check=False)
if xkb_keymap.stdout:
vm.untrusted_qdb.write('/qubes-keyboard', xkb_keymap.stdout)
except FileNotFoundError: