From 377a82105dfe11b7726bf7200d88fd2be59f35b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 27 Apr 2017 01:12:19 +0200 Subject: [PATCH] Add qvm-start-gui autostart script Start it using XDG Autostart feature, but exclude starting in qubes-session - so even if package is installed in a VM, it wont be started simultaneusly with GUI agent. On the other hand, if some other DE session is running there (which will be the case for GUI domain), gui-daemons will be started accordingly. QubesOS/qubes-issues#833 --- Makefile | 2 ++ etc/qvm-start-gui.desktop | 8 ++++++++ rpm_spec/qubes-core-mgmt-client.spec | 1 + 3 files changed, 11 insertions(+) create mode 100644 etc/qvm-start-gui.desktop diff --git a/Makefile b/Makefile index ecfa5be..2f04ec7 100644 --- a/Makefile +++ b/Makefile @@ -10,3 +10,5 @@ build: .PHONY: install install: $(PYTHON) setup.py install -O1 $(PYTHON_PREFIX_ARG) --root $(DESTDIR) + install -d $(DESTDIR)/etc/xdg/autostart + install -m 0644 etc/qvm-start-gui.desktop $(DESTDIR)/etc/xdg/autostart/ diff --git a/etc/qvm-start-gui.desktop b/etc/qvm-start-gui.desktop new file mode 100644 index 0000000..e3966fe --- /dev/null +++ b/etc/qvm-start-gui.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Qubes Guid +Comment=Starts Dom0 GUI daemon for Qubes VMs +Icon=qubes +Exec=qvm-start-gui +Terminal=false +Type=Application +NotShowIn=X-QUBES diff --git a/rpm_spec/qubes-core-mgmt-client.spec b/rpm_spec/qubes-core-mgmt-client.spec index 7884a14..26d93d6 100644 --- a/rpm_spec/qubes-core-mgmt-client.spec +++ b/rpm_spec/qubes-core-mgmt-client.spec @@ -52,6 +52,7 @@ rm -rf build %files %doc LICENSE +%config /etc/xdg/autostart/qvm-start-gui.desktop %files -n python2-qubesmgmt %{python_sitelib}/qubesmgmt-*egg-info