/usr/share/apport/package-hooks/source_indicator-power.py is in indicator-power 12.10.6+16.04.20160105-0ubuntu1.
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 | '''apport package hook for indicator-power
(c) 2011 Canonical Ltd.
Author: Ken VanDine <ken.vandine@ubuntu.com>
'''
from apport.hookutils import *
from os import path
def add_info(report):
report['UPowerDump'] = command_output(['upower', '-d'])
return report
|