summaryrefslogtreecommitdiff
path: root/xdg-user-dir
blob: d64fcd6716249be2653775677d53f2a2d106dd64 (plain)
1
2
3
4
5
6
7
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