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-15 02:51:12 +07:00
parent 5b5a56da88
commit 2d4e515e69
2 changed files with 17 additions and 1 deletions

View file

@ -25,7 +25,7 @@
PRGNAM=mate-session-manager
VERSION=${VERSION:-1.11.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_msb}
if [ -z "$ARCH" ]; then
@ -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;