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