mate-base/mate-session-manager: Fix #633334
authorAdam Feldman <NP-Hardass@gentoo.org>
Mon, 6 Apr 2020 20:06:56 +0000 (16:06 -0400)
committerAdam Feldman <NP-Hardass@gentoo.org>
Mon, 6 Apr 2020 20:18:42 +0000 (16:18 -0400)
Closes: https://bugs.gentoo.org/633334
Package-Manager: Portage-2.3.96, Repoman-2.3.21
Signed-off-by: Adam Feldman <NP-Hardass@gentoo.org>
mate-base/mate-session-manager/files/10-user-dirs-update-mate-r1 [new file with mode: 0644]
mate-base/mate-session-manager/files/15-xdg-data-mate-r1 [new file with mode: 0644]
mate-base/mate-session-manager/mate-session-manager-1.22.3-r1.ebuild [moved from mate-base/mate-session-manager/mate-session-manager-1.22.3.ebuild with 93% similarity]
mate-base/mate-session-manager/mate-session-manager-1.24.0-r1.ebuild [moved from mate-base/mate-session-manager/mate-session-manager-1.24.0.ebuild with 93% similarity]

diff --git a/mate-base/mate-session-manager/files/10-user-dirs-update-mate-r1 b/mate-base/mate-session-manager/files/10-user-dirs-update-mate-r1
new file mode 100644 (file)
index 0000000..994d978
--- /dev/null
@@ -0,0 +1,10 @@
+#!/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
diff --git a/mate-base/mate-session-manager/files/15-xdg-data-mate-r1 b/mate-base/mate-session-manager/files/15-xdg-data-mate-r1
new file mode 100644 (file)
index 0000000..8bf113e
--- /dev/null
@@ -0,0 +1,9 @@
+#!/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
similarity index 93%
rename from mate-base/mate-session-manager/mate-session-manager-1.22.3.ebuild
rename to mate-base/mate-session-manager/mate-session-manager-1.22.3-r1.ebuild
index 2d7d629ade732d51b1f8be8af1fc2db83cc8644f..9eb1d35adf534d414adb19cb1c73d48f5dbd24bf 100644 (file)
@@ -83,8 +83,8 @@ src_install() {
 
        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
 }
similarity index 93%
rename from mate-base/mate-session-manager/mate-session-manager-1.24.0.ebuild
rename to mate-base/mate-session-manager/mate-session-manager-1.24.0-r1.ebuild
index f30b9cf5ba100c398e7684d4dc9a5200d95e42f2..1788d072af18bc68d2fd238f2acd582ade9feaaf 100644 (file)
@@ -82,8 +82,8 @@ src_install() {
 
        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
 }