~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to debian/update-notifier-crash

  • Committer: Jeremy Bicha
  • Date: 2019-02-09 14:25:07 UTC
  • Revision ID: jbicha@ubuntu.com-20190209142507-45fc0sqnn4uqdl7j
Try adding gnome-shell as alternate dependency of notification-daemon

as part of an effort to drop notification-daemon to universe

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
# if whoopsie in never report mode, don't show anything.
 
5
which whoopsie
 
6
has_whoopsie=$?
 
7
systemctl -q is-enabled whoopsie
 
8
whoopsie_enabled=$?
 
9
if [ $has_whoopsie -eq 0 -a $whoopsie_enabled -ne 0 ]; then
 
10
    exit 0
 
11
fi
 
12
 
 
13
if /usr/share/apport/apport-checkreports; then
 
14
    /usr/share/apport/apport-gtk
 
15
else
 
16
    if /usr/share/apport/apport-checkreports --system; then
 
17
        if groups | grep -qE "sudo|admin" ; then
 
18
            /usr/lib/update-notifier/system-crash-notification
 
19
        fi
 
20
    fi
 
21
fi
 
22