pkgsrc/x11/xdg-user-dirs/patches/patch-aa
drochner e50c8b955c import xdg-user-dirs-0.10 which does basically provide a tool
to create the ~/.config/user-dirs.dirs file which is used by
modern applications to get "well known" user directories
(for downloads etc)
2009-04-16 19:06:56 +00:00

14 lines
536 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2009/04/16 19:06:56 drochner Exp $
--- xdg-user-dir.orig 2007-02-26 16:51:16.000000000 +0100
+++ xdg-user-dir
@@ -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}