Don't pass stdin to VMs unless necessary.

Fixes QubesOS/qubes-issues#5562
This commit is contained in:
3hhh 2020-01-15 15:18:43 +01:00
parent 35fa733a67
commit 698bcc27ab
No known key found for this signature in database
GPG Key ID: EB03A691DB2F0833

View File

@ -15,7 +15,7 @@ def is_program_installed_in_qube( program, qube_name ):
try:
command = 'command -v ' + program
subprocess.check_call([ 'qvm-run', qube_name, '--pass-io', '--no-color-output', command ], stdout = open( os.devnull, 'w' ) )
subprocess.check_call([ 'qvm-run', '--no-color-output', qube_name, command ], stdout = open( os.devnull, 'w' ) )
except subprocess.CalledProcessError:
is_installed = False