Fix GUI extension
This commit is contained in:
parent
487411be4c
commit
7f2f4a4e75
@ -78,8 +78,7 @@ class GUI(qubes.ext.Extension):
|
|||||||
or not os.path.exists('/var/run/shm.id'):
|
or not os.path.exists('/var/run/shm.id'):
|
||||||
return
|
return
|
||||||
|
|
||||||
# FIXME move this method to this extension, plugged to event
|
if self.is_guid_running(vm):
|
||||||
if vm.is_guid_running():
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if not vm.features.check_with_template('gui', not vm.hvm):
|
if not vm.features.check_with_template('gui', not vm.hvm):
|
||||||
@ -212,7 +211,7 @@ class GUI(qubes.ext.Extension):
|
|||||||
:py:obj:`False` otherwise.
|
:py:obj:`False` otherwise.
|
||||||
:rtype: bool
|
:rtype: bool
|
||||||
'''
|
'''
|
||||||
xid = self.xid
|
xid = vm.xid
|
||||||
if xid < 0:
|
if xid < 0:
|
||||||
return False
|
return False
|
||||||
if not os.path.exists('/var/run/qubes/guid-running.{}'.format(xid)):
|
if not os.path.exists('/var/run/qubes/guid-running.{}'.format(xid)):
|
||||||
|
Loading…
Reference in New Issue
Block a user