diff options
author | Ted Gould <ted@gould.cx> | 2014-03-24 15:01:05 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-03-24 15:01:05 +0000 |
commit | 87fca85fbcb5fe94bcbbf52e1ce828372c5cf938 (patch) | |
tree | 589f713b86f0cff3389b90c63231219fd5505c20 /debian/source_indicator-sound.py | |
parent | b237767cb787f20e13fe564d0b07b33c38e58123 (diff) | |
parent | 376abf4447582540551b8e04efc84b5958d66f09 (diff) | |
download | ayatana-indicator-sound-87fca85fbcb5fe94bcbbf52e1ce828372c5cf938.tar.gz ayatana-indicator-sound-87fca85fbcb5fe94bcbbf52e1ce828372c5cf938.tar.bz2 ayatana-indicator-sound-87fca85fbcb5fe94bcbbf52e1ce828372c5cf938.zip |
Add an apport hook for debugging
Diffstat (limited to 'debian/source_indicator-sound.py')
-rw-r--r-- | debian/source_indicator-sound.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/source_indicator-sound.py b/debian/source_indicator-sound.py new file mode 100644 index 0000000..90e8f4f --- /dev/null +++ b/debian/source_indicator-sound.py @@ -0,0 +1,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') |