* Try konsole and gnome-terminal in addition to xterm.

This commit is contained in:
Eelco Dolstra 2006-09-21 11:29:14 +00:00
parent 1bdc152931
commit ee5040421f

View File

@ -12,7 +12,9 @@ die unless defined $pkgFile;
if (!defined $ENV{"NIX_HAVE_TERMINAL"}) {
$ENV{"NIX_HAVE_TERMINAL"} = "1";
$ENV{"LD_LIBRARY_PATH"} = "";
exec("xterm", "-e", "@shell@", "-c", "@bindir@/nix-install-package '$pkgFile' || read");
foreach my $term ("konsole", "gnome-terminal", "xterm") {
exec($term, "-e", "@shell@", "-c", "@bindir@/nix-install-package '$pkgFile' || read");
}
die "cannot execute `xterm'";
}