Blame SOURCES/0029-spice-vdagent.desktop-Change-autostart-to-WindowMana.patch

36bea2
From d0aeaff0dae4c7eb7fcb88d2d33c667364e870de Mon Sep 17 00:00:00 2001
36bea2
From: Victor Toso <me@victortoso.com>
36bea2
Date: Tue, 4 Sep 2018 10:51:42 +0200
36bea2
Subject: [PATCH] spice-vdagent.desktop: Change autostart to WindowManager
36bea2
 stage
36bea2
36bea2
It is possible that g_get_user_special_dir() return NULL for
36bea2
G_USER_DIRECTORY_DESKTOP or G_USER_DIRECTORY_DOWNLOAD; This is a sure
36bea2
thing to happen in case xdg-user-dirs hasn't been run yet.
36bea2
36bea2
Keeping spice-vdagent to run on Initialization stage of
36bea2
X-GNOME-Autostart-Phase could trigger a race with xdg-user-dirs that
36bea2
also runs on Initialization, which is the earliest stage possible.
36bea2
36bea2
Moving to spice-vdagent to run WindowManager stage avoids the race
36bea2
with xdg-user-dirs and still runs before any graphical application.
36bea2
36bea2
Tested also moving to Desktop stage, which is 4th stage (out of 5) and
36bea2
worked without apparent drawbacks.
36bea2
36bea2
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1623947
36bea2
Signed-off-by: Victor Toso <victortoso@redhat.com>
36bea2
---
36bea2
 data/spice-vdagent.desktop | 2 +-
36bea2
 1 file changed, 1 insertion(+), 1 deletion(-)
36bea2
36bea2
diff --git a/data/spice-vdagent.desktop b/data/spice-vdagent.desktop
36bea2
index d152c12..260dace 100644
36bea2
--- a/data/spice-vdagent.desktop
36bea2
+++ b/data/spice-vdagent.desktop
36bea2
@@ -5,4 +5,4 @@ Exec=/usr/bin/spice-vdagent
36bea2
 Terminal=false
36bea2
 Type=Application
36bea2
 Categories=
36bea2
-X-GNOME-Autostart-Phase=Initialization
36bea2
+X-GNOME-Autostart-Phase=WindowManager
36bea2
-- 
36bea2
2.17.1
36bea2