summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Vogt <fvogt@suse.de>2023-02-08 17:21:48 +0100
committerFabian Vogt <fvogt@suse.de>2023-02-09 10:22:01 +0100
commitaa08162f036840d3e33502dc0a836b03b9cec97c (patch)
tree86369d253c7435991316485e70f2c585e212d907
parentbcbbea34d93d07d33b767f808ff3adf628b1ea0f (diff)
Switch to spice-vdagent.service by defaultHEADmaster
Add an [Install] section to the user unit and tell systemd to ignore the .desktop file explicitly. Also add missing ordering dependencies. Without this, the service fails if it is started before e.g. $DISPLAY is set.
-rw-r--r--data/spice-vdagent.desktop1
-rw-r--r--data/spice-vdagent.service5
2 files changed, 6 insertions, 0 deletions
diff --git a/data/spice-vdagent.desktop b/data/spice-vdagent.desktop
index 4424061..729a5f6 100644
--- a/data/spice-vdagent.desktop
+++ b/data/spice-vdagent.desktop
@@ -7,3 +7,4 @@ Type=Application
Categories=
X-GNOME-Autostart-Phase=WindowManager
NoDisplay=true
+X-systemd-skip=true
diff --git a/data/spice-vdagent.service b/data/spice-vdagent.service
index a18f4ff..91734ff 100644
--- a/data/spice-vdagent.service
+++ b/data/spice-vdagent.service
@@ -1,5 +1,10 @@
[Unit]
Description=Spice guest session agent
+# Make sure the display is reachable
+After=graphical-session.target
[Service]
ExecStart=/usr/bin/spice-vdagent -x
+
+[Install]
+WantedBy=graphical-session.target