linuxOS_AP05/debian/test/usr/bin/xdg-user-dir
2025-09-26 09:40:02 +08:00

9 lines
234 B
Bash
Executable File

#!/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