summaryrefslogtreecommitdiffstats
path: root/perl-install/keyboard.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-01-06 19:40:54 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-01-06 19:40:54 +0000
commitc90d6b259ef290cc5cf565b3d41e19d1d9e76d12 (patch)
tree90d43749eb1c43a4c8ae0b28f4e7c10cd27feb1b /perl-install/keyboard.pm
parent4a3cfc72e287db5d7c7741e5df5524e71bf89158 (diff)
downloaddrakx-c90d6b259ef290cc5cf565b3d41e19d1d9e76d12.tar
drakx-c90d6b259ef290cc5cf565b3d41e19d1d9e76d12.tar.gz
drakx-c90d6b259ef290cc5cf565b3d41e19d1d9e76d12.tar.bz2
drakx-c90d6b259ef290cc5cf565b3d41e19d1d9e76d12.tar.xz
drakx-c90d6b259ef290cc5cf565b3d41e19d1d9e76d12.zip
(setup): don't xmodmap if DISPLAY is unset
Diffstat (limited to 'perl-install/keyboard.pm')
-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 {