Handles user special directories
CentOS Sources
2018-04-10 618d226bef3d5553b25ed04033a9f108cf4b4b59
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From eff699165095bdc150d58e8dfca98af11c9ee2af Mon Sep 17 00:00:00 2001
From: Matthias Klumpp <matthias@tenstral.net>
Date: Thu, 17 Aug 2017 04:05:46 +0200
Subject: 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.
 
https://bugs.freedesktop.org/show_bug.cgi?id=102303
 
diff --git a/Makefile.am b/Makefile.am
index 9a40e68..a3ef127 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,6 +19,9 @@ EXTRA_DIST= config.rpath translate.c autogen.sh \
 xdgdir=$(sysconfdir)/xdg
 xdg_DATA=user-dirs.conf user-dirs.defaults
 
+xdgautostartdir=$(xdgdir)/autostart
+xdgautostart_DATA = xdg-user-dirs.desktop
+
 libraries = $(LIBINTL)
 
 bin_PROGRAMS =                    \
diff --git a/xdg-user-dirs.desktop b/xdg-user-dirs.desktop
new file mode 100644
index 0000000..6b969d4
--- /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
-- 
cgit v0.10.2