summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Feldman <NP-Hardass@gentoo.org>2020-04-06 16:06:56 -0400
committerAdam Feldman <NP-Hardass@gentoo.org>2020-04-06 16:18:42 -0400
commitf37bb35c5790f9f708167bd7d156f3a0c8419836 (patch)
tree29f59b6f14be82f02ab3a183b9d6114bff54f21a /mate-base/mate-session-manager/files
parentmate-base/mate-control-center: Adjust subslot deps on x11-wm/marco (diff)
downloadgentoo-f37bb35c5790f9f708167bd7d156f3a0c8419836.tar.gz
gentoo-f37bb35c5790f9f708167bd7d156f3a0c8419836.tar.bz2
gentoo-f37bb35c5790f9f708167bd7d156f3a0c8419836.zip
mate-base/mate-session-manager: Fix #633334
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>
Diffstat (limited to 'mate-base/mate-session-manager/files')
-rw-r--r--mate-base/mate-session-manager/files/10-user-dirs-update-mate-r110
-rw-r--r--mate-base/mate-session-manager/files/15-xdg-data-mate-r19
2 files changed, 19 insertions, 0 deletions
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
index 00000000000..994d978dcb3
--- /dev/null
+++ b/mate-base/mate-session-manager/files/10-user-dirs-update-mate-r1
@@ -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
index 00000000000..8bf113e6882
--- /dev/null
+++ b/mate-base/mate-session-manager/files/15-xdg-data-mate-r1
@@ -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