--- /dev/null
+#!/bin/sh
+
+# Create various XDG directories, and write ~/.config/user-dirs.dirs, etc.
+# That file is read by glib to get XDG_PICTURES_DIR, etc
+
+if [ "$XDG_CURRENT_DESKTOP" = "MATE" ]; then
+ if type xdg-user-dirs-update >/dev/null 2>&1; then
+ xdg-user-dirs-update
+ fi
+fi
--- /dev/null
+#!/bin/sh
+
+if [ "$XDG_DESKTOP_SESSION" = "MATE" ]; then
+ if [ -z "$XDG_DATA_DIRS" ]; then
+ export XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/
+ else
+ export XDG_DATA_DIRS=/usr/share/mate:"$XDG_DATA_DIRS"
+ fi
+fi
dodir /etc/X11/xinit/xinitrc.d/
exeinto /etc/X11/xinit/xinitrc.d/
- doexe "${FILESDIR}"/15-xdg-data-mate
+ newexe "${FILESDIR}"/15-xdg-data-mate-r1 15-xdg-data-mate
# This should be done in MATE too, see Gentoo bug #270852
- doexe "${FILESDIR}"/10-user-dirs-update-mate
+ newexe "${FILESDIR}"/10-user-dirs-update-mate-r1 10-user-dirs-update-mate
}
dodir /etc/X11/xinit/xinitrc.d/
exeinto /etc/X11/xinit/xinitrc.d/
- doexe "${FILESDIR}"/15-xdg-data-mate
+ newexe "${FILESDIR}"/15-xdg-data-mate-r1 15-xdg-data-mate
# This should be done in MATE too, see Gentoo bug #270852
- doexe "${FILESDIR}"/10-user-dirs-update-mate
+ newexe "${FILESDIR}"/10-user-dirs-update-mate-r1 10-user-dirs-update-mate
}