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

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