diff options
Diffstat (limited to 'xdg-user-dir')
-rwxr-xr-x | xdg-user-dir | 8 |
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 |