summaryrefslogtreecommitdiffstats
path: root/xdg-user-dir
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:01:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:01:42 +0000
commitaa98e388fa3407f703f80c61117237af961f61b3 (patch)
tree28b7e94cee4f96a9a0ea2b482cd279279e7bb713 /xdg-user-dir
parentInitial commit. (diff)
downloadxdg-user-dirs-aa98e388fa3407f703f80c61117237af961f61b3.tar.xz
xdg-user-dirs-aa98e388fa3407f703f80c61117237af961f61b3.zip
Adding upstream version 0.18.upstream/0.18upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xdg-user-dir')
-rwxr-xr-xxdg-user-dir8
1 files changed, 8 insertions, 0 deletions
diff --git a/xdg-user-dir b/xdg-user-dir
new file mode 100755
index 0000000..d64fcd6
--- /dev/null
+++ b/xdg-user-dir
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && . ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
+if [ "x$1" = "xDESKTOP" ]; then
+ eval echo \${XDG_${1}_DIR:-$HOME/Desktop}
+else
+ eval echo \${XDG_${1}_DIR:-$HOME}
+fi