From 6532a611b1036a1e375d5f60aa024300dde24239 Mon Sep 17 00:00:00 2001 From: wsnipex Date: Mon, 20 Jul 2015 14:10:39 +0200 Subject: [linux] fix crashlog generation --- tools/Linux/kodi.sh.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/Linux/kodi.sh.in b/tools/Linux/kodi.sh.in index 43290f81d9..421c9485c5 100644 --- a/tools/Linux/kodi.sh.in +++ b/tools/Linux/kodi.sh.in @@ -113,7 +113,9 @@ print_crash_report() fi single_stacktrace "$BASEDIR" 5 # find in userdata dir - single_stacktrace $USERDATA_DIR/ 5 + single_stacktrace "$HOME" 5 + # try /proc/sys/kernel/core_pattern + [ -d "$(dirname $(cat /proc/sys/kernel/core_pattern))" ] && single_stacktrace "$(dirname $(cat /proc/sys/kernel/core_pattern))" 1 else echo "gdb not installed, can't get stack trace." >> $FILE fi -- cgit v1.2.3