diff --git a/Makefile b/Makefile index 7e764b20..e335e5ad 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,12 @@ ifeq ($(OS),Linux) DATADIR ?= /var/lib/qubes STATEDIR ?= /var/run/qubes LOGDIR ?= /var/log/qubes +FILESDIR ?= /usr/share/qubes else ifeq ($(OS),Windows_NT) DATADIR ?= c:/qubes STATEDIR ?= c:/qubes/state LOGDIR ?= c:/qubes/log +FILESDIR ?= c:/program files/Invisible Things Lab/Qubes endif help: @@ -78,11 +80,9 @@ endif cp qubes-rpc/qubes.NotifyTools $(DESTDIR)/etc/qubes-rpc/ cp qubes-rpc/qubes-notify-updates $(DESTDIR)/usr/libexec/qubes/ cp qubes-rpc/qubes-notify-tools $(DESTDIR)/usr/libexec/qubes/ - mkdir -p $(DESTDIR)/usr/share/qubes -ifeq ($(BACKEND_VMM),xen) - cp xen-vm-config/vm-template.xml $(DESTDIR)/usr/share/qubes/xen-vm-template.xml - cp xen-vm-config/vm-template-hvm.xml $(DESTDIR)/usr/share/qubes/ -endif + mkdir -p "$(DESTDIR)$(FILESDIR)" + cp vm-config/$(BACKEND_VMM)-vm-template.xml "$(DESTDIR)$(FILESDIR)/vm-template.xml" + cp vm-config/$(BACKEND_VMM)-vm-template-hvm.xml "$(DESTDIR)$(FILESDIR)/vm-template-hvm.xml" mkdir -p $(DESTDIR)$(DATADIR) mkdir -p $(DESTDIR)$(DATADIR)/vm-templates mkdir -p $(DESTDIR)$(DATADIR)/appvms diff --git a/core/qubes.py b/core/qubes.py index 4ff20dd1..34f3fa21 100755 --- a/core/qubes.py +++ b/core/qubes.py @@ -68,7 +68,7 @@ system_path = { # use QIcon.fromTheme() where applicable 'qubes_icon_dir': '/usr/share/icons/hicolor/128x128/devices', - 'config_template_pv': '/usr/share/qubes/xen-vm-template.xml', + 'config_template_pv': '/usr/share/qubes/vm-template.xml', 'qubes_pciback_cmd': '/usr/lib/qubes/unbind-pci-device.sh', 'prepare_volatile_img_cmd': '/usr/lib/qubes/prepare-volatile-img.sh', diff --git a/xen-vm-config/vm-template-hvm.xml b/vm-config/xen-vm-template-hvm.xml similarity index 100% rename from xen-vm-config/vm-template-hvm.xml rename to vm-config/xen-vm-template-hvm.xml diff --git a/xen-vm-config/vm-template.xml b/vm-config/xen-vm-template.xml similarity index 100% rename from xen-vm-config/vm-template.xml rename to vm-config/xen-vm-template.xml