From 7f2f4a4e751df85146be92423f2e2b80267016ca Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Wed, 27 Apr 2016 15:24:10 +0200 Subject: [PATCH] Fix GUI extension --- qubes/ext/gui.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qubes/ext/gui.py b/qubes/ext/gui.py index 38d74663..8d8debab 100644 --- a/qubes/ext/gui.py +++ b/qubes/ext/gui.py @@ -78,8 +78,7 @@ class GUI(qubes.ext.Extension): or not os.path.exists('/var/run/shm.id'): return - # FIXME move this method to this extension, plugged to event - if vm.is_guid_running(): + if self.is_guid_running(vm): return if not vm.features.check_with_template('gui', not vm.hvm): @@ -212,7 +211,7 @@ class GUI(qubes.ext.Extension): :py:obj:`False` otherwise. :rtype: bool ''' - xid = self.xid + xid = vm.xid if xid < 0: return False if not os.path.exists('/var/run/qubes/guid-running.{}'.format(xid)):