%define sys_assert on
-%define crash_popup off
-
Name: crash-worker
Summary: Crash-manager
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
-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
#!/bin/sh
+source /etc/tizen-platform.conf
+
PATH=/bin:/usr/bin:/sbin:/usr/sbin
exec >/dev/null 2>&1
@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=" "