From 7d858d5064fd0c26454b72bf9fe3e0472f31e34f Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 4 Feb 2014 17:57:17 +0100 Subject: Fix gdm autostart path gdm 3.1.90 (June 2011) changed the path where .desktop files which should be autostarted with gdm needs to be located. This used to be $(datadir)/gdm/autostart/LoginWindow and is now $(datadir)/gdm/greeter/autostart. This means that when running gdm in a VM in a recent distribution, arbitrary resizing the VM window will not cause the resolution to be adjusted. This used to be working in eg RHEL6. This patch installs the .desktop file to both paths in order to work both with older and newer gdms. --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 74cc313..7fae742 100644 --- a/Makefile.am +++ b/Makefile.am @@ -42,9 +42,12 @@ noinst_HEADERS = src/glib-compat.h \ xdgautostartdir = $(sysconfdir)/xdg/autostart xdgautostart_DATA = $(top_srcdir)/data/spice-vdagent.desktop -gdmautostartdir = $(datadir)/gdm/autostart/LoginWindow +gdmautostartdir = $(datadir)/gdm/greeter/autostart gdmautostart_DATA = $(top_srcdir)/data/spice-vdagent.desktop +gdmautostart2dir = $(datadir)/gdm/autostart/LoginWindow +gdmautostart2_DATA = $(top_srcdir)/data/spice-vdagent.desktop + install-data-local: $(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd -- cgit v1.2.3