From c90d6b259ef290cc5cf565b3d41e19d1d9e76d12 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 6 Jan 2001 19:40:54 +0000 Subject: (setup): don't xmodmap if DISPLAY is unset --- perl-install/keyboard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') 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 { -- cgit v1.2.1