mate-session-manager: Add default XDG directories by default upon startup.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2015-10-25 00:41:46 +07:00
parent 5adc8fb072
commit f9104b6d9f
2 changed files with 16 additions and 0 deletions

View file

@ -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

View file

@ -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;