dom0/core: pass icon path to qubes_guid

GUI daemon now is able to load the icon (when path given) and publish it to X
server. This makes possible to have VM name in WM_CLASS property (instead of
icon name) to fix window grouping in KDE.
这个提交包含在:
Marek Marczykowski 2013-02-19 01:07:24 +01:00
父节点 b214fa6f9d
当前提交 7051960d6a
共有 2 个文件被更改,包括 3 次插入3 次删除

查看文件

@ -1498,7 +1498,7 @@ class QubesVm(object):
print >> sys.stderr, "--> Starting Qubes GUId..."
xid = self.get_xid()
guid_cmd = [qubes_guid_path, "-d", str(xid), "-c", self.label.color, "-i", self.label.icon, "-l", str(self.label.index)]
guid_cmd = [qubes_guid_path, "-d", str(xid), "-c", self.label.color, "-i", self.label.icon_path, "-l", str(self.label.index)]
if self.debug:
guid_cmd += ['-v', '-v']
retcode = subprocess.call (guid_cmd)
@ -2560,7 +2560,7 @@ class QubesHVm(QubesVm):
if verbose:
print >> sys.stderr, "--> Starting Qubes GUId..."
retcode = subprocess.call ([qubes_guid_path, "-d", str(self.stubdom_xid), "-c", self.label.color, "-i", self.label.icon, "-l", str(self.label.index)])
retcode = subprocess.call ([qubes_guid_path, "-d", str(self.stubdom_xid), "-c", self.label.color, "-i", self.label.icon_path, "-l", str(self.label.index)])
if (retcode != 0) :
raise QubesException("Cannot start qubes_guid!")

查看文件

@ -73,7 +73,7 @@ class QfileDaemonDvm:
current_dvm_conf,
'-u', str(vm.default_user),
'-c', label.color,
'-i', label.icon,
'-i', label.icon_path,
'-l', str(label.index)])
qmemman_client.close()
if retcode != 0: