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