3478ae
From eff699165095bdc150d58e8dfca98af11c9ee2af Mon Sep 17 00:00:00 2001
3478ae
From: Matthias Klumpp <matthias@tenstral.net>
3478ae
Date: Thu, 17 Aug 2017 04:05:46 +0200
3478ae
Subject: Add autostart .desktop file for user-dirs-update
3478ae
3478ae
The user-dirs update was traditionally done by an Xsession.d snippet,
3478ae
which does not work in a Wayland session.
3478ae
To avoid duplicating the .desktop file in every distribution, we ship it
3478ae
upstream.
3478ae
3478ae
https://bugs.freedesktop.org/show_bug.cgi?id=102303
3478ae
3478ae
diff --git a/Makefile.am b/Makefile.am
3478ae
index 9a40e68..a3ef127 100644
3478ae
--- a/Makefile.am
3478ae
+++ b/Makefile.am
3478ae
@@ -19,6 +19,9 @@ EXTRA_DIST= config.rpath translate.c autogen.sh \
3478ae
 xdgdir=$(sysconfdir)/xdg
3478ae
 xdg_DATA=user-dirs.conf user-dirs.defaults
3478ae
 
3478ae
+xdgautostartdir=$(xdgdir)/autostart
3478ae
+xdgautostart_DATA = xdg-user-dirs.desktop
3478ae
+
3478ae
 libraries = $(LIBINTL)
3478ae
 
3478ae
 bin_PROGRAMS =					\
3478ae
diff --git a/xdg-user-dirs.desktop b/xdg-user-dirs.desktop
3478ae
new file mode 100644
3478ae
index 0000000..6b969d4
3478ae
--- /dev/null
3478ae
+++ b/xdg-user-dirs.desktop
3478ae
@@ -0,0 +1,10 @@
3478ae
+[Desktop Entry]
3478ae
+Type=Application
3478ae
+Name=User folders update
3478ae
+TryExec=xdg-user-dirs-update
3478ae
+Exec=xdg-user-dirs-update
3478ae
+StartupNotify=false
3478ae
+NoDisplay=true
3478ae
+
3478ae
+X-GNOME-Autostart-Phase=Initialization
3478ae
+X-KDE-autostart-phase=1
3478ae
-- 
3478ae
cgit v0.10.2
3478ae