From ad8b856c3b0d4d6055141a74664dbea4416c198d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 15:40:30 +0200 Subject: Adding upstream version 0.17. Signed-off-by: Daniel Baumann --- xdg-user-dir | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 xdg-user-dir (limited to 'xdg-user-dir') 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 -- cgit v1.2.3