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