[trace] Set output location using pwd

Record the current working directory and pass that along to cairo-trace so
that the trace output is local to the user and not the application. This
is vital if the application is called via a script that changes directory.
This commit is contained in:
Chris Wilson 2009-05-25 21:25:27 +01:00
parent a76e09ea65
commit a364f71194

View file

@ -86,7 +86,7 @@ if test -n "$flush"; then
fi
if test -z "$nofile"; then
CAIRO_TRACE_OUTDIR=. "$@"
CAIRO_TRACE_OUTDIR=`pwd` "$@"
else
CAIRO_TRACE_FD=3 "$@" 3>&1 >/dev/null
fi