How about requiring SHELL in addition to TERM?
$ sudo cat /proc/`pidof whoopsie`/environ | xargs -0n1
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
TERM=linux
CRASH_DB_URL=https://daisy.ubuntu.com
RUNLEVEL=2
PREVLEVEL=N
UPSTART_EVENTS=runlevel
UPSTART_JOB=whoopsie
UPSTART_INSTANCE=
That ought to at least work for such system daemons, and they don't have
$SHELL. $SHELL is also a "safe" (i. e. non-sensitive) variable, so we
keep that.
** Changed in: whoopsie-daisy (Ubuntu)
Status: New => Invalid
** Changed in: apport (Ubuntu)
Status: New => In Progress
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/962130
Title:
Crash in whoopsie itself shows application alert instead of internal
error alert
Status in “apport” package in Ubuntu:
Fix Committed
Status in “whoopsie-daisy” package in Ubuntu:
Invalid
Bug description:
apport 1.94.1-0ubuntu2, whoopsie 0.1.19, Ubuntu Pangolin
When whoopsie itself crashes, the alert says "Sorry, the application
whoopsie has closed unexpectedly."
whoopsie is not an application, it's a part of the Ubuntu system, so
the "Sorry, Ubuntu has experienced an internal error" should appear
instead.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/962130/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp