Fixed upstream. I added a new method def attach_root_command_outputs(report, command_map): '''Execute multiple commands as root and put their outputs into report.
command_map is a keyname -> 'shell command' dictionary with the commands to run. They are all run through /bin/sh, so you need to take care of shell escaping yourself. To include stderr output of a command, end it with "2>&1". Just like root_command_output() this will use gksu, kdesudo, or sudo for gaining root privileges, depending on the running desktop environment. This is preferrable to using root_command_output() multiple times, as that will ask for the password every time. ''' ** Changed in: apport (Ubuntu) Status: Triaged => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/716595 Title: Apport hook prompts 3 times for password -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs