
| Current Path : /proc/thread-self/root/usr/share/apport/package-hooks/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //proc/thread-self/root/usr/share/apport/package-hooks/source_indicator-sound.py |
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')