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

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