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