summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xurpmi2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index 6ccf9ebe..b9741cda 100755
--- a/urpmi
+++ b/urpmi
@@ -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) {