like the desktop folder and the music folder. It also handles localization of the filenames. WWW: http://freedesktop.org/wiki/Software/xdg-user-dirs/ PR: ports/125672 Submitted by: Max Brazhnikov <makc at issp.ac.ru>
12 lines
512 B
Text
12 lines
512 B
Text
--- ./xdg-user-dir.orig 2007-02-26 18:51:16.000000000 +0300
|
|
+++ ./xdg-user-dir 2008-07-16 00:00:38.000000000 +0400
|
|
@@ -1,7 +1,7 @@
|
|
#!/bin/sh
|
|
|
|
-test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
|
|
-if [ "x$1" == "xDESKTOP" ]; then
|
|
+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}
|