Use VM name as argument to qrexec-client

This is the only place where ID was used - all other places uses name.
Linux qrexec-client accepts both ID and name, but sticking to one option
will simplify things (especially Windows qrexec-client/daemon).
This commit is contained in:
Marek Marczykowski-Górecki 2013-10-15 15:02:58 +02:00
parent def58ab911
commit 3ba424e6ac

View File

@ -1429,7 +1429,7 @@ class QubesVm(object):
if gui and os.getenv("DISPLAY") is not None and not self.is_guid_running(): if gui and os.getenv("DISPLAY") is not None and not self.is_guid_running():
self.start_guid(verbose = verbose, notify_function = notify_function) self.start_guid(verbose = verbose, notify_function = notify_function)
args = [system_path["qrexec_client_path"], "-d", str(self.xid), "%s:%s" % (user, command)] args = [system_path["qrexec_client_path"], "-d", str(self.name), "%s:%s" % (user, command)]
if localcmd is not None: if localcmd is not None:
args += [ "-l", localcmd] args += [ "-l", localcmd]
if filter_esc: if filter_esc: