Set debugmode by checking debugmode file 41/89541/1 accepted/tizen/3.0/common/20161114.110031 accepted/tizen/3.0/ivi/20161011.043757 accepted/tizen/3.0/mobile/20161015.032636 accepted/tizen/3.0/tv/20161016.003932 accepted/tizen/3.0/wearable/20161015.081841 accepted/tizen/common/20160926.154301 accepted/tizen/ivi/20160927.020736 accepted/tizen/mobile/20160927.021102 accepted/tizen/tv/20160927.021042 accepted/tizen/wearable/20160927.021051 submit/tizen/20160926.074333 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001 submit/tizen_3.0_wearable/20161015.000001
authorKunhoon Baik <knhoon.baik@samsung.com>
Mon, 26 Sep 2016 04:08:18 +0000 (13:08 +0900)
committerKunhoon Baik <knhoon.baik@samsung.com>
Mon, 26 Sep 2016 04:08:18 +0000 (13:08 +0900)
 - If debugmode is enabled, crash popup is shown
 - Else crash popup is not shown.

Related patch : https://review.tizen.org/gerrit/#/c/88421/

Change-Id: Iad7d79309b507d96e26ddda99472acadc0a45cd9

packaging/crash-worker.spec
src/crash-manager/crash-manager.sh.in

index a071e5c6eae0a5f3afca5d7c06403fc1917bce8d..3b98404c807b8a95b572911744381b08c65abdc7 100644 (file)
@@ -1,6 +1,4 @@
 %define sys_assert on
-%define crash_popup off
-
 
 Name:      crash-worker
 Summary:    Crash-manager
@@ -24,9 +22,6 @@ Requires(post): coreutils
 Requires(post): tar
 Requires(post): gzip
 Requires: libunwind
-%if %{?crash_popup} == on
-Requires: /usr/bin/dbus-send
-%endif
 # If you need support for core dump files (see building below),
 # you should add this dependency
 # Requires: libebl
@@ -72,7 +67,6 @@ export CFLAGS+=" -Werror"
           -DCRASH_TEMP=%{crash_temp} \
           -DCRASH_PIPE_PATH=%{_libexecdir}/crash-pipe \
           -DCRASH_STACK_PATH=%{_libexecdir}/crash-stack \
-          -DCRASH_POPUP=%{crash_popup} \
           -DSYS_ASSERT=%{sys_assert} \
           -DUPGRADE_SCRIPT_PATH=%{upgrade_script_path}
 # to add support for core dump files add backslash at the end of above line
index 540f44613c32e43ececb65bf9a09c54958328a83..3d3f2fc2e929446b238589d84eda224f1aa4307f 100644 (file)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+source /etc/tizen-platform.conf
+
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
 
 exec >/dev/null 2>&1
@@ -45,7 +47,7 @@ else
   @CRASH_STACK_PATH@ --pid "$pid" >> "$info_path"
 fi
 
-if [ "@CRASH_POPUP@" = "on" ]
+if [ -e $TZ_SYS_ETC/.debugmode ]
 then
 #Find the full path of executable. The path is used to find appid in the crash-popup
        exepath=" "