diff options
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r-- | perl-install/interactive.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 960657ee9..300f64db2 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -42,7 +42,7 @@ sub vnew { my ($type, $su) = @_; $su = $su eq "su"; require c; - if (c::Xtest($ENV{DISPLAY} ||= ":0")) { + if ($ENV{DISPLAY} && c::Xtest($ENV{DISPLAY})) { if ($su) { $ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}"; $> and exec "kdesu", "-c", "$0 @ARGV"; |