summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/NEWS3
-rwxr-xr-xperl-install/standalone/drakbug8
2 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 0f9703f6a..7907f3b05 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,6 @@
+- drakbug
+ o when unable to access X11, just print the backtrace on the console
+
Version 10.4.210 - 24 September 2007, by Thierry Vignaud
- diskdrake
diff --git a/perl-install/standalone/drakbug b/perl-install/standalone/drakbug
index 0e3cb1b5c..210ace916 100755
--- a/perl-install/standalone/drakbug
+++ b/perl-install/standalone/drakbug
@@ -24,6 +24,7 @@ use lib qw(/usr/lib/libDrakX);
use any;
use standalone;
use common;
+BEGIN { $::no_ugtk_init = 1 }
use mygtk2 qw(gtknew);
use ugtk2 qw(:all);
use Config;
@@ -42,6 +43,13 @@ foreach (@ARGV) {
/^--incident$/ and do { $incident = 1; $prog = splice(@ARGV, $i, 1) };
}
+if (!check_for_xserver) {
+ print("Cannot be run in console mode.\n");
+ print N("The \"%s\" program has crashed with the following error:", $prog) . "\n$error\n" if $error;
+}
+
+mygtk2::init();
+
$ugtk2::wm_icon = 'drakbug-16';
my $window = ugtk2->new(N("Mandriva Linux Bug Report Tool"), center => 1);
$window->{rwindow}->set_border_width(5);
K>"D+^8"~i"cY 8GTc+|#]c0Q9} _z'9 ]Uo*N7*Rˁ\ːT^Q9n6sd>\RևV4z5.̚f‣tqoq-?fn 2V'F@IVf_52@5#;'^҂nJ/l5.9 \ЯS6sm֔J/{4 C`MTy!6kbTdhjk5rvkHbi{ب-g9!'N-BCԊDj04i^?6\qɨ#ˀmZ$kO1e_S_0RmM'FiqTC(\;lq~%;I7^/RJ} &j WmhI{( l܅UgOφ⡳or!;=fJ{$?n[%4zL*+wZ gcǙ* ^\]6egYZ