summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunhoon Baik <knhoon.baik@samsung.com>2016-09-26 13:08:18 +0900
committerKunhoon Baik <knhoon.baik@samsung.com>2016-09-26 13:08:18 +0900
commita9c79aa1062c8e335982499f2b3f99413cfd5455 (patch)
treef52aab3bf55a219b26734bf8533c6006f705b89b
parent3dfea60f96640c395286038e75102544c41a08ff (diff)
downloadcrash-worker-a9c79aa1062c8e335982499f2b3f99413cfd5455.tar.gz
crash-worker-a9c79aa1062c8e335982499f2b3f99413cfd5455.tar.bz2
crash-worker-a9c79aa1062c8e335982499f2b3f99413cfd5455.zip
- 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
-rw-r--r--packaging/crash-worker.spec6
-rw-r--r--src/crash-manager/crash-manager.sh.in4
2 files changed, 3 insertions, 7 deletions
diff --git a/packaging/crash-worker.spec b/packaging/crash-worker.spec
index a071e5c..3b98404 100644
--- a/packaging/crash-worker.spec
+++ b/packaging/crash-worker.spec
@@ -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
diff --git a/src/crash-manager/crash-manager.sh.in b/src/crash-manager/crash-manager.sh.in
index 540f446..3d3f2fc 100644
--- a/src/crash-manager/crash-manager.sh.in
+++ b/src/crash-manager/crash-manager.sh.in
@@ -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=" "