Comment 1 for bug 222260

Revision history for this message
Kees Cook (kees) wrote :

Attaching a branch that fixes this. I note, however, that this is not a very distro-agnostic way to handle it. Perhaps a /var/lib/apport file that /etc/init.d/apport modifies would be "better"?

=== modified file 'apport_python_hook.py'
--- apport_python_hook.py 2008-04-11 21:04:30 +0000
+++ apport_python_hook.py 2008-04-26 01:06:30 +0000
@@ -30,6 +30,15 @@
     # import locally here so that there is no routine overhead on python
     # startup time - only when a traceback occurs will this trigger.
     try:
+ # test if apport is enabled
+ enabled=1
+ try:
+ execfile('/etc/default/apport')
+ except:
+ pass
+ if not enabled:
+ return
+
         # ignore 'safe' exit types.
         if exc_type in (KeyboardInterrupt, ):
             return