Some apport package hooks, like totem's, will need to be modified so
that they still collect data even if ui is None.

def add_info(report, ui):

    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)

    if response == None: # user cancelled
        raise StopIteration
    .....
    report["LogAlsaMixer"] = 
apport.hookutils.command_output(["/usr/bin/amixer"])

Because ui is None, then response crashes and the addition of AlsaMixer
never happens.  However, this can be fixed by either checking for ui or
reorganizing the order of operations.

** Changed in: apport (Ubuntu)
     Assignee: (unassigned) => Brian Murray (brian-murray)

** Changed in: apport (Ubuntu)
       Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1084979

Title:
  Submitting error report asks confounding questions

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1084979/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to