imgconverter: use core3 API in get_from_vm()
This commit is contained in:
parent
95805f6333
commit
02d9a1e68f
@ -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):
|
def get_from_vm(cls, vm, src, **kwargs):
|
||||||
'Get image from VM by QUBESRPC (qubes.GetImageRGBA).'
|
'Get image from VM by QUBESRPC (qubes.GetImageRGBA).'
|
||||||
|
|
||||||
p = vm.run('QUBESRPC qubes.GetImageRGBA dom0', passio_popen=True,
|
p = vm.run_service('qubes.GetImageRGBA')
|
||||||
gui=False)
|
p.stdin.write('{0}\n'.format(src).encode())
|
||||||
p.stdin.write('{0}\n'.format(src))
|
|
||||||
p.stdin.close()
|
p.stdin.close()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user