summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/keyboard.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm
index 50ac2cc6d..555843390 100644
--- a/perl-install/keyboard.pm
+++ b/perl-install/keyboard.pm
@@ -292,7 +292,7 @@ sub setup {
}
}
my $f = xmodmap_file($keyboard);
- eval { run_program::run('xmodmap', $f) } unless $::testing || !$f;
+ eval { run_program::run('xmodmap', $f) } if $f && !$::testing && $ENV{DISPLAY};
}
sub write {