From f9104b6d9fee67e672a583a333700ee664d3a8b7 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sun, 25 Oct 2015 00:41:46 +0700 Subject: [PATCH] mate-session-manager: Add default XDG directories by default upon startup. Signed-off-by: Willy Sudiarto Raharjo --- .../mate-session-manager.SlackBuild | 4 ++++ .../xdg-user-dirs-update.desktop | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 base/mate-session-manager/xdg-user-dirs-update.desktop diff --git a/base/mate-session-manager/mate-session-manager.SlackBuild b/base/mate-session-manager/mate-session-manager.SlackBuild index aff0217..a06d07a 100644 --- a/base/mate-session-manager/mate-session-manager.SlackBuild +++ b/base/mate-session-manager/mate-session-manager.SlackBuild @@ -99,6 +99,10 @@ install -m 0755 $CWD/xinitrc.mate-session $PKG/etc/X11/xinit/xinitrc.mate-sessio mkdir -p $PKG/usr/share/apps/kdm/sessions ln -sf /usr/share/xsessions/mate.desktop $PKG/usr/share/apps/kdm/sessions/ +# Create default directories upon startup +mkdir -p $PKG/etc/xdg/autostart +cp $CWD/xdg-user-dirs-update.desktop $PKG/etc/xdg/autostart/xdg-user-dirs-update.desktop + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/base/mate-session-manager/xdg-user-dirs-update.desktop b/base/mate-session-manager/xdg-user-dirs-update.desktop new file mode 100644 index 0000000..b6f59e2 --- /dev/null +++ b/base/mate-session-manager/xdg-user-dirs-update.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=XDG User Directories +TryExec=xdg-user-dirs-update +Exec=xdg-user-dirs-update +Icon=folder +Terminal=false +Comment=Create XDG user directories +Type=Application +OnlyShowIn=MATE; +