Skip to content

Commit

Permalink
mate-base/mate-session-manager: Fix typo and to hopefully be foolproof
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
NP-Hardass committed Apr 7, 2020
1 parent 553c77e commit 118c72a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ src_install() {

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
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ src_install() {

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
}

0 comments on commit 118c72a

Please sign in to comment.