[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.8-22-gac12227

Luca Bruno lethalman88 at gmail.com
Thu Nov 26 21:19:13 UTC 2009


The following commit has been merged in the master branch:
commit e6526ae94f339bacc13cd3ce9efa859ef3865388
Author: Luca Bruno <lethalman88 at gmail.com>
Date:   Sun Nov 22 11:38:12 2009 +0100

    open a terminal when fallbacking to text mode if stdout is not available

diff --git a/debian/changelog b/debian/changelog
index ad9020e..264b1e8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -47,8 +47,9 @@ reportbug (4.8+WIP) UNRELEASED; urgency=low
   * reportbug/ui/gtk2_ui.py
     - more clean handling of response in error/info dialogs; thanks to
       Julian Andres Klode; Closes: #527259
+    - open a terminal when fallbacking to text mode if stdout is not available
 
- -- Luca Bruno <lethalman88 at gmail.com>  Sun, 22 Nov 2009 10:13:24 +0100
+ -- Luca Bruno <lethalman88 at gmail.com>  Sun, 22 Nov 2009 11:33:28 +0100
 
 reportbug (4.8) unstable; urgency=low
 
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 532ddbb..50e6fcd 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -1447,6 +1447,8 @@ Falling back to 'text' interface."""
         dialog.destroy ()
         while gtk.events_pending ():
             gtk.main_iteration ()
+        if not sys.stdout.isatty ():
+            os.execlp ('x-terminal-emulator', 'x-terminal-emulator', '-e', 'reportbug -u text')
         return False
 
     # Exception hook

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list