711
711
self.ui_error_message(_('Invalid problem report'), excstr(e))
713
713
elif self.options.window:
714
self.ui_info_message('', _('After closing this message '
715
'please click on an application window to report a problem about it.'))
716
xprop = subprocess.Popen(['xprop', '_NET_WM_PID'],
717
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
718
(out, err) = xprop.communicate()
719
if xprop.returncode == 0:
721
self.options.pid = int(out.split()[-1])
723
self.ui_error_message(_('Cannot create report'),
724
_('xprop failed to determine process ID of the window'))
726
return self.run_report_bug()
714
self.ui_info_message('', _('After closing this message '
715
'please click on an application window to report a problem about it.'))
716
xprop = subprocess.Popen(['xprop', '_NET_WM_PID'],
717
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
718
(out, err) = xprop.communicate()
719
if xprop.returncode == 0:
721
self.options.pid = int(out.split()[-1])
728
723
self.ui_error_message(_('Cannot create report'),
729
_('xprop failed to determine process ID of the window') + '\n\n' + err)
724
_('xprop failed to determine process ID of the window'))
726
return self.run_report_bug()
728
self.ui_error_message(_('Cannot create report'),
729
_('xprop failed to determine process ID of the window') + '\n\n' + err)
732
732
return self.run_crashes()