From 33fe986296a0be3969c108a5c1343fbb81db971d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 13 Jun 2007 15:34:39 +0000 Subject: prevent urpmi.update to run /usr/bin/resize through Term::ReadKey->GetTerminalSize() when xterm is installed (which freezes the GNOME desktop) (#30867) --- Rpmdrake/init.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Rpmdrake') diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm index 98c3db64..90d411af 100755 --- a/Rpmdrake/init.pm +++ b/Rpmdrake/init.pm @@ -33,6 +33,12 @@ use Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(init warn_about_user_mode $changelog_first $default_list_mode %options $MODE); +# prevent urpmi.update to run /usr/bin/resize through Term::ReadKey->GetTerminalSize() when xterm is installed +# (which freezes the GNOME desktop): +BEGIN { + $ENV{COLUMNS} = 80; + $ENV{LINES} = 25; +} BEGIN { #- we want to run this code before the Gtk->init of the use-my_gtk my $basename = sub { local $_ = shift; s|/*\s*$||; s|.*/||; $_ }; -- cgit v1.2.1