/usr/share/apport/general-hooks/checkbox.py is in checkbox 0.13.7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | '''apport general hook for checkbox
(c) 2009 Canonical Ltd.
Author: David Murphy <schwuk@ubuntu.com>
'''
import os
def add_info(report):
HOME = os.environ.get('HOME', '/')
CACHE_HOME = os.environ.get('XDG_CACHE_HOME',
os.path.join(HOME, '.cache'))
SYSTEM = os.path.join(CACHE_HOME, 'checkbox', 'system')
SUBMISSION = os.path.join(CACHE_HOME, 'checkbox', 'submission')
try:
report['CheckboxSystem'] = open(SYSTEM).read()
except IOError:
pass
try:
report['CheckboxSubmission'] = open(SUBMISSION).read()
except IOError:
pass
|