diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-24 13:08:14 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-24 13:08:14 +0000 |
commit | 227b9fbe7ba0ab41a09c4260701ff23779d794d4 (patch) | |
tree | d9913975129900cfe0845debf20d4cf76d340a7e | |
parent | b90c4abf99b372b73e8f2f5883f1ca48bf98240b (diff) | |
download | urpmi-227b9fbe7ba0ab41a09c4260701ff23779d794d4.tar urpmi-227b9fbe7ba0ab41a09c4260701ff23779d794d4.tar.gz urpmi-227b9fbe7ba0ab41a09c4260701ff23779d794d4.tar.bz2 urpmi-227b9fbe7ba0ab41a09c4260701ff23779d794d4.tar.xz urpmi-227b9fbe7ba0ab41a09c4260701ff23779d794d4.zip |
Invoke gui dialog only under X
-rwxr-xr-x | urpmi | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -486,7 +486,7 @@ $urpm->copy_packages_of_removable_media( ask_for_medium => (!$urpm->{options}{auto} || $allow_medium_change) && sub { my $msg = N("Please insert the medium named \"%s\" on device [%s]", $_[0], $_[1]); my $msg2 = N("Press Enter when ready..."); - if (our $gui) { + if ($ENV{DISPLAY} && our $gui) { #- probably run from a drak tool my $gmessage = find { -x $_ } '/usr/X11R6/bin/gmessage', '/usr/bin/gmessage'; if ($gmessage) { |