diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-06-13 15:34:39 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-06-13 15:34:39 +0000 |
commit | 33fe986296a0be3969c108a5c1343fbb81db971d (patch) | |
tree | acac787f2e758cf640bb319db2d822739d0c17cd /Rpmdrake | |
parent | ac76267ab7cfad8d04821b26c2dff288f85e7103 (diff) | |
download | rpmdrake-33fe986296a0be3969c108a5c1343fbb81db971d.tar rpmdrake-33fe986296a0be3969c108a5c1343fbb81db971d.tar.gz rpmdrake-33fe986296a0be3969c108a5c1343fbb81db971d.tar.bz2 rpmdrake-33fe986296a0be3969c108a5c1343fbb81db971d.tar.xz rpmdrake-33fe986296a0be3969c108a5c1343fbb81db971d.zip |
prevent urpmi.update to run /usr/bin/resize through
Term::ReadKey->GetTerminalSize() when xterm is installed (which freezes
the GNOME desktop) (#30867)
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-x | Rpmdrake/init.pm | 6 |
1 files changed, 6 insertions, 0 deletions
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|.*/||; $_ }; |