mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2024-12-25 21:59:36 +01:00
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:
parent
5adc8fb072
commit
f9104b6d9f
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
12
base/mate-session-manager/xdg-user-dirs-update.desktop
Normal file
12
base/mate-session-manager/xdg-user-dirs-update.desktop
Normal 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;
|
||||
|
Loading…
Reference in a new issue