imgconverter: use core3 API in get_from_vm()

This commit is contained in:
Marek Marczykowski-Górecki 2017-05-18 01:02:35 +02:00
parent 95805f6333
commit 02d9a1e68f
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -172,9 +172,8 @@ get_from_stream(), get_from_vm(), get_xdg_icon_from_vm(), get_through_dvm()'''
def get_from_vm(cls, vm, src, **kwargs):
'Get image from VM by QUBESRPC (qubes.GetImageRGBA).'
p = vm.run('QUBESRPC qubes.GetImageRGBA dom0', passio_popen=True,
gui=False)
p.stdin.write('{0}\n'.format(src))
p = vm.run_service('qubes.GetImageRGBA')
p.stdin.write('{0}\n'.format(src).encode())
p.stdin.close()
try: