diff options
author | wsnipex <wsnipex@a1.net> | 2014-01-11 08:24:54 +0100 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2014-01-11 08:24:54 +0100 |
commit | d577803ddf0023dbae431f309141e73447a3faa0 (patch) | |
tree | a9693d9d395bf7861c0921098bb72dbfe0f31166 /tools | |
parent | deb47e94bf57036b844fd2e317746bae33794215 (diff) |
[linux] allow override of crashlog directory
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Linux/xbmc.sh.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/Linux/xbmc.sh.in b/tools/Linux/xbmc.sh.in index 2bead97fe4..db99670547 100644 --- a/tools/Linux/xbmc.sh.in +++ b/tools/Linux/xbmc.sh.in @@ -23,6 +23,7 @@ prefix="@prefix@" exec_prefix="@exec_prefix@" datarootdir="@datarootdir@" LIBDIR="@libdir@" +CRASHLOG_DIR=${CRASHLOG_DIR:-$HOME} # Check for some options used by this script while [ "$#" -gt "0" ] @@ -52,7 +53,7 @@ single_stacktrace() print_crash_report() { - FILE="$HOME/xbmc_crashlog-`date +%Y%m%d_%H%M%S`.log" + FILE="$CRASHLOG_DIR/xbmc_crashlog-`date +%Y%m%d_%H%M%S`.log" echo "############## XBMC CRASH LOG ###############" >> $FILE echo >> $FILE echo "################ SYSTEM INFO ################" >> $FILE |