1
import os, apport.packaging, apport.hookutils
3
def add_info(report, ui):
5
response = ui.choice("How would you describe the issue?", ["The totem interface is not working correctly", "No sound is being played", "Some audio files or videos are not being played correctly"], False)
7
if response == None: # user cancelled
9
if response[0] == 1: # the issue is a sound one
10
os.execlp('apport-bug', 'apport-bug', 'audio')
12
if response[0] == 2: # the issue is a codec one
13
report.add_package_info("libgstreamer0.10-0")
16
report["LogAlsaMixer"] = apport.hookutils.command_output(["/usr/bin/amixer"])
17
report["GstreamerVersions"] = apport.hookutils.package_versions("gstreamer*")
18
report["XorgLog"] = apport.hookutils.read_file("/var/log/Xorg.0.log")