aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTrent Nelson <trent.a.b.nelson@gmail.com>2014-02-23 09:32:32 -0700
committerTrent Nelson <trent.a.b.nelson@gmail.com>2014-02-23 09:32:32 -0700
commit792607904e847881796e56f5716e5b595eabce58 (patch)
treeea1c5a03ed4935b0cd5acd724aa14b11e69e5ccb /tools
parentd4c0cd9badfccbf51c72fcbcc4cc3b6223b2a49f (diff)
parentd577803ddf0023dbae431f309141e73447a3faa0 (diff)
Merge pull request #4007 from wsnipex/crashlog
[linux] allow override of crashlog directory
Diffstat (limited to 'tools')
-rw-r--r--tools/Linux/xbmc.sh.in3
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