diff options
Diffstat (limited to 'perl-install/Xconfigurator.pm')
-rw-r--r-- | perl-install/Xconfigurator.pm | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm index 5cd806b64..3c1de1982 100644 --- a/perl-install/Xconfigurator.pm +++ b/perl-install/Xconfigurator.pm @@ -461,13 +461,7 @@ sub testFinalConfig($;$$) { $ENV{DISPLAY} = ":9"; - my $background = "/usr/share/pixmaps/mdk/mandrake-logo.xpm"; - my $qiv = "/usr/bin/qiv"; - if ("$prefix/$background" && -x "$prefix/$qiv") { - system(($::testing ? "$prefix" : "chroot $prefix/ ") . "$qiv -y $background"); - } else { - gtkset_background(200 * 257, 210 * 257, 210 * 257); - } + gtkset_background(200 * 257, 210 * 257, 210 * 257); my ($h, $w) = Gtk::Gdk::Window->new_foreign(Gtk::Gdk->ROOT_WINDOW)->get_size; $my_gtk::force_position = [ $w / 3, $h / 2.4 ]; $my_gtk::force_focus = 1; @@ -479,6 +473,11 @@ sub testFinalConfig($;$$) { 1; }); + my $background = "/usr/share/pixmaps/mdk/mandrake-logo.xpm"; + my $qiv = "/usr/bin/qiv"; + -r "$prefix/$background" && -x "$prefix/$qiv" and + system(($::testing ? "$prefix" : "chroot $prefix/ ") . "$qiv -y $background"); + exit (interactive_gtk->new->ask_yesorno('', [ _("Is this the correct setting?"), $text ], 0) ? 0 : 222); }; my $rc = close F; |