From 5609ba23f16880dd59cd9e2445730779476d614d Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Thu, 17 Aug 2017 04:05:46 +0200 Subject: [PATCH] Add autostart .desktop file for user-dirs-update The user-dirs update was traditionally done by an Xsession.d snippet, which does not work in a Wayland session. To avoid duplicating the .desktop file in every distribution, we ship it upstream. --- Makefile.am | 3 +++ xdg-user-dirs.desktop | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 xdg-user-dirs.desktop --- a/Makefile.am +++ b/Makefile.am @@ -16,6 +16,9 @@ xdgdir=$(sysconfdir)/xdg xdg_DATA=user-dirs.conf user-dirs.defaults +xdgautostartdir=$(xdgdir)/autostart +xdgautostart_DATA = xdg-user-dirs.desktop + libraries = $(LIBINTL) bin_PROGRAMS = \ --- /dev/null +++ b/xdg-user-dirs.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=User folders update +TryExec=xdg-user-dirs-update +Exec=xdg-user-dirs-update +StartupNotify=false +NoDisplay=true + +X-GNOME-Autostart-Phase=Initialization +X-KDE-autostart-phase=1