summaryrefslogtreecommitdiff
path: root/mate-base/mate-session-manager/files/10-user-dirs-update-mate
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-04-24 20:14:15 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-04-24 20:14:15 +0100
commitdc0c250ebeebc929347823e47921443c4edee24d (patch)
tree2664f7574359227d09e18806c1ceafb14e723f03 /mate-base/mate-session-manager/files/10-user-dirs-update-mate
parent3c04df6705e3e8a4e15c9f9e219c4739f74fe1d5 (diff)
cherry pick upower1 API support for mate-session-manager && mate-power-manager
Diffstat (limited to 'mate-base/mate-session-manager/files/10-user-dirs-update-mate')
-rw-r--r--mate-base/mate-session-manager/files/10-user-dirs-update-mate10
1 files changed, 10 insertions, 0 deletions
diff --git a/mate-base/mate-session-manager/files/10-user-dirs-update-mate b/mate-base/mate-session-manager/files/10-user-dirs-update-mate
new file mode 100644
index 00000000..35973aae
--- /dev/null
+++ b/mate-base/mate-session-manager/files/10-user-dirs-update-mate
@@ -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 [ "$DESKTOP_SESSION" = "mate" ]; then
+ if type xdg-user-dirs-update >/dev/null 2>&1; then
+ xdg-user-dirs-update
+ fi
+fi