← Back to team overview

apport-hackers team mailing list archive

[Merge] lp:~themuso/apport/pulse-card-list into lp:apport

 

Luke Yelavich has proposed merging lp:~themuso/apport/pulse-card-list into lp:apport.

Requested reviews:
  Apport upstream developers (apport-hackers)

For more details, see:
https://code.launchpad.net/~themuso/apport/pulse-card-list/+merge/68634

Dump the list of sinks and sources that pulse knows about into the apport report, to help with audio bug triage.
-- 
https://code.launchpad.net/~themuso/apport/pulse-card-list/+merge/68634
Your team Apport upstream developers is requested to review the proposed merge of lp:~themuso/apport/pulse-card-list into lp:apport.
=== modified file 'apport/hookutils.py'
--- apport/hookutils.py	2011-07-21 05:29:58 +0000
+++ apport/hookutils.py	2011-07-21 06:58:29 +0000
@@ -220,6 +220,10 @@
             + glob.glob('/dev/snd/*')
             + glob.glob('/dev/seq*') )
 
+    if os.path.exists('/usr/bin/pacmd'):
+        report['PulseSinks'] = command_output(['pacmd', 'list-sinks'])
+        report['PulseSources'] = command_output(['pacmd', 'list-sources'])
+
     attach_dmi(report)
     attach_dmesg(report)