diff options
author | Ted Gould <ted@gould.cx> | 2014-01-03 13:23:05 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-01-03 13:23:05 -0600 |
commit | 376abf4447582540551b8e04efc84b5958d66f09 (patch) | |
tree | ea87ab28e525b17c85e1845af21c69eb74feafd6 | |
parent | 072ae31df7f63600503268c0e8bbf4292fd72d0c (diff) | |
download | ayatana-indicator-sound-376abf4447582540551b8e04efc84b5958d66f09.tar.gz ayatana-indicator-sound-376abf4447582540551b8e04efc84b5958d66f09.tar.bz2 ayatana-indicator-sound-376abf4447582540551b8e04efc84b5958d66f09.zip |
Add the action states if we don't have a stack
-rw-r--r-- | debian/source_indicator-sound.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/source_indicator-sound.py b/debian/source_indicator-sound.py index 8d7ee2a..90e8f4f 100644 --- a/debian/source_indicator-sound.py +++ b/debian/source_indicator-sound.py @@ -1,7 +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') |