1
description "Notification regarding a crash report"
2
author "Brian Murray <brian@ubuntu.com>"
5
file FILE=/var/crash/*.crash EVENT=create or
6
file FILE=/var/crash/*.crash EVENT=modify
14
echo "$DATE crash report $MATCH detected"
15
if [ -e /var/lib/apport/autoreport ]; then
16
echo "$DATE autoreporting enabled exiting"
19
if [ -O $MATCH ]; then
20
/usr/share/apport/apport-gtk
23
/usr/share/apport/apport-checkreports --system || SYSTEMCRASH=$?
24
if [ $SYSTEMCRASH -eq 0 ]; then
25
# not in admin group return
27
groups | grep -qE "sudo|admin" || ADMIN=$?
28
if [ $ADMIN -ne 0 ]; then
31
# be nice and always ask first before firing up pkexec
32
if [ -x /lib/udev/watershed ]; then
33
/lib/udev/watershed sh -c '/usr/lib/update-notifier/system-crash-notification'
35
/usr/lib/update-notifier/system-crash-notification