|
@@ -30,7 +30,7 @@ import win32net
|
|
import pywintypes
|
|
import pywintypes
|
|
|
|
|
|
from qubes.storage import QubesVmStorage
|
|
from qubes.storage import QubesVmStorage
|
|
-from qubes.qubes import QubesException
|
|
|
|
|
|
+from qubes.qubes import QubesException,system_path
|
|
|
|
|
|
class QubesWniVmStorage(QubesVmStorage):
|
|
class QubesWniVmStorage(QubesVmStorage):
|
|
"""
|
|
"""
|
|
@@ -42,6 +42,10 @@ class QubesWniVmStorage(QubesVmStorage):
|
|
# Use the user profile as "private.img"
|
|
# Use the user profile as "private.img"
|
|
self.private_img = os.path.join("c:\\Users", self._get_username())
|
|
self.private_img = os.path.join("c:\\Users", self._get_username())
|
|
|
|
|
|
|
|
+ # Pass paths for WNI libvirt driver
|
|
|
|
+ os.putenv("WNI_DRIVER_QUBESDB_PATH", system_path['qubesdb_daemon_path'])
|
|
|
|
+ os.putenv("WNI_DRIVER_QREXEC_PATH", system_path['qrexec_agent_path'])
|
|
|
|
+
|
|
def _get_username(self, vmname = None):
|
|
def _get_username(self, vmname = None):
|
|
if vmname is None:
|
|
if vmname is None:
|
|
vmname = self.vm.name
|
|
vmname = self.vm.name
|