aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2016-03-04 12:18:14 -0500
committerKylie McClain <somasis@exherbo.org>2016-03-04 12:23:25 -0500
commit55bf512cd86d0b47cbfe814bae24cad07734bb78 (patch)
tree5de69f25ffea6b0b010e47e4222f53bf97814e44
parent7e36b97627acef02799eccccbc58d3b5beedc0ca (diff)
downloadbeginning-scripts-55bf512cd86d0b47cbfe814bae24cad07734bb78.tar.gz
beginning-scripts-55bf512cd86d0b47cbfe814bae24cad07734bb78.tar.xz
beginning-scripts-55bf512cd86d0b47cbfe814bae24cad07734bb78.zip
xdg-runtime-dirs: create /run/user too if needed
-rw-r--r--xdg-runtime-dirs1
1 files changed, 1 insertions, 0 deletions
diff --git a/xdg-runtime-dirs b/xdg-runtime-dirs
index aa0fd21..bc04d17 100644
--- a/xdg-runtime-dirs
+++ b/xdg-runtime-dirs
@@ -5,6 +5,7 @@ xdg-runtime-dirs_exists() {
}
xdg-runtime-dirs_start() {
+ [[ -d "@@runstatedir@@"/user ]] || mkdir "@@runstatedir@@"/user >/dev/null 2>&1
for u in $(cut -f1,3-4 -d ':' "@@sysconfdir@@"/passwd);do
user=${u%%:*}
gid=${u##*:}