47
48
# do we have a running Gnome/KDE session
48
49
elif pgrep -u `id -u` -x gnome-session >/dev/null && \
49
50
[ -x /usr/share/apport/apport-gtk ]; then
51
52
elif pgrep -u `id -u` -x ksmserver >/dev/null && \
52
53
[ -x /usr/share/apport/apport-qt ]; then
54
55
# fall back to calling whichever is available
55
56
elif [ -x /usr/share/apport/apport-gtk ]; then
57
58
elif [ -x /usr/share/apport/apport-kde ]; then
59
60
elif [ -x /usr/bin/apport-cli ]; then
66
67
echo "Neither apport-gtk, apport-qt or apport-cli is installed. Install either to make this program work." >&2