Thanks to Joakim Tjerlund for pointing it out.
Bug: https://bugs.gentoo.org/633334
Package-Manager: Portage-2.3.96, Repoman-2.3.21
Signed-off-by: Adam Feldman <NP-Hardass@gentoo.org>
# 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 [ "$XDG_CURRENT_DESKTOP" = "MATE" -o \
+ "$XDG_SESSION_DESKTOP" = "mate" -o \
+ "$DESKTOP_SESSION" = "mate" ]; then
if type xdg-user-dirs-update >/dev/null 2>&1; then
xdg-user-dirs-update
fi
#!/bin/sh
-if [ "$XDG_DESKTOP_SESSION" = "MATE" ]; then
+if [ "$XDG_CURRENT_DESKTOP" = "MATE" -o \
+ "$XDG_SESSION_DESKTOP" = "mate" -o \
+ "$DESKTOP_SESSION" = "mate" ]; then
if [ -z "$XDG_DATA_DIRS" ]; then
export XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/
else
dodir /etc/X11/xinit/xinitrc.d/
exeinto /etc/X11/xinit/xinitrc.d/
- newexe "${FILESDIR}"/15-xdg-data-mate-r1 15-xdg-data-mate
+ newexe "${FILESDIR}"/15-xdg-data-mate-r2 15-xdg-data-mate
# This should be done in MATE too, see Gentoo bug #270852
- newexe "${FILESDIR}"/10-user-dirs-update-mate-r1 10-user-dirs-update-mate
+ newexe "${FILESDIR}"/10-user-dirs-update-mate-r2 10-user-dirs-update-mate
}
dodir /etc/X11/xinit/xinitrc.d/
exeinto /etc/X11/xinit/xinitrc.d/
- newexe "${FILESDIR}"/15-xdg-data-mate-r1 15-xdg-data-mate
+ newexe "${FILESDIR}"/15-xdg-data-mate-r2 15-xdg-data-mate
# This should be done in MATE too, see Gentoo bug #270852
- newexe "${FILESDIR}"/10-user-dirs-update-mate-r1 10-user-dirs-update-mate
+ newexe "${FILESDIR}"/10-user-dirs-update-mate-r2 10-user-dirs-update-mate
}