46eaa5
From 0758938a5bd824bdd081adf543d6cab927c6d358 Mon Sep 17 00:00:00 2001
46eaa5
From: Christophe Fergeau <cfergeau@redhat.com>
46eaa5
Date: Tue, 4 Feb 2014 17:57:17 +0100
46eaa5
Subject: [PATCH] Fix gdm autostart path
46eaa5
46eaa5
gdm 3.1.90 (June 2011) changed the path where .desktop files which should
46eaa5
be autostarted with gdm needs to be located.
46eaa5
This used to be $(datadir)/gdm/autostart/LoginWindow and is now
46eaa5
$(datadir)/gdm/greeter/autostart.
46eaa5
This means that when running gdm in a VM in a recent distribution,
46eaa5
arbitrary resizing the VM window will not cause the resolution to be
46eaa5
adjusted. This used to be working in eg RHEL6.
46eaa5
46eaa5
This patch installs the .desktop file to both paths in order to work both
46eaa5
with older and newer gdms.
46eaa5
46eaa5
https://bugzilla.redhat.com/show_bug.cgi?id=1052172
46eaa5
(cherry picked from commit 7d858d5064fd0c26454b72bf9fe3e0472f31e34f)
46eaa5
---
46eaa5
 Makefile.am | 5 ++++-
46eaa5
 1 file changed, 4 insertions(+), 1 deletion(-)
46eaa5
46eaa5
diff --git a/Makefile.am b/Makefile.am
46eaa5
index 5515ca0..8a65704 100644
46eaa5
--- a/Makefile.am
46eaa5
+++ b/Makefile.am
46eaa5
@@ -42,9 +42,12 @@ noinst_HEADERS = src/glib-compat.h \
46eaa5
 xdgautostartdir = $(sysconfdir)/xdg/autostart
46eaa5
 xdgautostart_DATA = $(top_srcdir)/data/spice-vdagent.desktop
46eaa5
 
46eaa5
-gdmautostartdir = $(datadir)/gdm/autostart/LoginWindow
46eaa5
+gdmautostartdir = $(datadir)/gdm/greeter/autostart
46eaa5
 gdmautostart_DATA = $(top_srcdir)/data/spice-vdagent.desktop
46eaa5
 
46eaa5
+gdmautostart2dir = $(datadir)/gdm/autostart/LoginWindow
46eaa5
+gdmautostart2_DATA = $(top_srcdir)/data/spice-vdagent.desktop
46eaa5
+
46eaa5
 install-data-local:
46eaa5
 	$(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd
46eaa5