/usr/share/apport/package-hooks/source_indicator-sound.py is in indicator-sound 12.10.2+16.04.20160406-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 13 14 15 16 | import os.path
from apport.hookutils import *
def attach_command_output(report, command_list, key):
log = command_output(command_list)
if not log or log[:5] == "Error":
return
report[key] = log
def add_info(report):
if not apport.packaging.is_distro_package(report['Package'].split()[0]):
report['ThirdParty'] = 'True'
report['CrashDB'] = 'indicator_sound'
if not 'StackTrace' in report:
attach_command_output(report, ['gdbus', 'call', '--session', '--dest', 'com.canonical.indicator.sound', '--object-path', '/com/canonical/indicator/sound', '--method', 'org.gtk.Actions.DescribeAll'], 'ActionStates')
|