Explorar o código

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).
Marek Marczykowski-Górecki %!s(int64=10) %!d(string=hai) anos
pai
achega
3ba424e6ac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core-modules/000QubesVm.py

+ 1 - 1
core-modules/000QubesVm.py

@@ -1429,7 +1429,7 @@ class QubesVm(object):
         if gui and os.getenv("DISPLAY") is not None and not self.is_guid_running():
             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:
             args += [ "-l", localcmd]
         if filter_esc: