Ubuntu Pastebin

Paste from martin at Fri, 6 Feb 2015 07:49:34 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
=== modified file 'gtk/apport-gtk'
--- gtk/apport-gtk	2015-02-06 07:42:03 +0000
+++ gtk/apport-gtk	2015-02-06 07:49:27 +0000
@@ -216,7 +216,7 @@
         self.w('continue_button').set_label(_('Continue'))
 
         self.w('cancel_button').hide()
-        if modal_for is not None:
+        if modal_for is not None and 'DISPLAY' in os.environ:
             xid = find_xid_for_pid(modal_for)
             if xid:
                 self.set_modal_for(xid)
Download as text