diff options
| author | Ted Gould <ted@gould.cx> | 2014-03-24 09:08:49 -0500 |
|---|---|---|
| committer | Ted Gould <ted@gould.cx> | 2014-03-24 09:08:49 -0500 |
| commit | 7d47058ef00b8aab6e7b58e20bd6e5fbcecdfc34 (patch) | |
| tree | acb3a39a0667a53080470fa190ecf6c3c73660a0 /debian/source_indicator-sound.py | |
| parent | aee881c058971adcbe676d0d24d4924a0f38ef67 (diff) | |
| parent | 376abf4447582540551b8e04efc84b5958d66f09 (diff) | |
| download | ayatana-indicator-sound-7d47058ef00b8aab6e7b58e20bd6e5fbcecdfc34.tar.gz ayatana-indicator-sound-7d47058ef00b8aab6e7b58e20bd6e5fbcecdfc34.tar.bz2 ayatana-indicator-sound-7d47058ef00b8aab6e7b58e20bd6e5fbcecdfc34.zip | |
Merge the apport-action-states branch
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') |
