patch-tools_Linux_xbmc_sh_in 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --- kodi-14.0alpha4.orig/tools/Linux/xbmc.sh.in 2014-09-05 14:09:59.000000000 +0200
  2. +++ kodi-14.0alpha4/tools/Linux/xbmc.sh.in 2014-09-08 13:26:02.745294460 +0200
  3. @@ -58,7 +58,7 @@ single_stacktrace()
  4. print_crash_report()
  5. {
  6. - FILE="$CRASHLOG_DIR/xbmc_crashlog-`date +%Y%m%d_%H%M%S`.log"
  7. + FILE="/tmp/xbmc_crashlog-`date +%Y%m%d_%H%M%S`.log"
  8. echo "############## XBMC CRASH LOG ###############" >> $FILE
  9. echo >> $FILE
  10. echo "################ SYSTEM INFO ################" >> $FILE
  11. @@ -70,15 +70,6 @@ print_crash_report()
  12. echo -n " Kernel: " >> $FILE
  13. uname -rvs >> $FILE
  14. echo -n " Release: " >> $FILE
  15. - if [ -f /etc/os-release ]; then
  16. - . /etc/os-release
  17. - echo $NAME $VERSION >> $FILE
  18. - elif command_exists lsb_release; then
  19. - echo >> $FILE
  20. - lsb_release -a 2> /dev/null | sed -e 's/^/ /' >> $FILE
  21. - else
  22. - echo "lsb_release not available" >> $FILE
  23. - fi
  24. echo "############## END SYSTEM INFO ##############" >> $FILE
  25. echo >> $FILE
  26. echo "############### STACK TRACE #################" >> $FILE
  27. @@ -100,31 +91,8 @@ print_crash_report()
  28. echo "gdb not installed, can't get stack trace." >> $FILE
  29. fi
  30. echo "############# END STACK TRACE ###############" >> $FILE
  31. - echo >> $FILE
  32. - echo "################# LOG FILE ##################" >> $FILE
  33. - echo >> $FILE
  34. - if [ -f ~/.xbmc/temp/xbmc.log ]
  35. - then
  36. - cat ~/.xbmc/temp/xbmc.log >> $FILE
  37. - echo >> $FILE
  38. - else
  39. - echo "Logfile not found in the usual place." >> $FILE
  40. - echo "Please attach it seperately." >> $FILE
  41. - echo "Use pastebin.com or similar for forums or IRC." >> $FILE
  42. - fi
  43. - echo >> $FILE
  44. - echo "############### END LOG FILE ################" >> $FILE
  45. - echo >> $FILE
  46. - echo "############ END XBMC CRASH LOG #############" >> $FILE
  47. - echo "Crash report available at $FILE"
  48. }
  49. -python @datadir@/xbmc/FEH.py $SAVED_ARGS
  50. -RET=$?
  51. -if [ $RET -ne 0 ]; then
  52. - exit $RET
  53. -fi
  54. -
  55. if command_exists gdb; then
  56. # Output warning in case ulimit is unsupported by shell
  57. eval ulimit -c unlimited