/usr/share/apport/package-hooks/source_indicator-china-weather.py is in indicator-china-weather 1.1.0-0ubuntu2.
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 | from apport.hookutils import *
import os.path
def add_info(report, ui=None):
if not apport.packaging.is_distro_package(report['Package'].split()[0]):
report['ThirdParty'] = 'True'
report['CrashDB'] = 'indicator_china_weather'
report['Settings'] = command_output(['gsettings', 'list-recursively', 'apps.indicators.chinaweather'])
log_filename = os.path.join(os.path.expanduser("~/.cache"), "indicator-china-weather.log")
if os.path.exists(log_filename):
report['IndicatorLog'] = open(log_filename).read()
|