From a364f71194aa2ea92071662f156c9b2a4d9211b4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 25 May 2009 21:25:27 +0100 Subject: [PATCH] [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. --- util/cairo-trace/cairo-trace.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/cairo-trace/cairo-trace.in b/util/cairo-trace/cairo-trace.in index 6660ff805..bf17217dc 100644 --- a/util/cairo-trace/cairo-trace.in +++ b/util/cairo-trace/cairo-trace.in @@ -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