* Try konsole and gnome-terminal in addition to xterm.
This commit is contained in:
parent
1bdc152931
commit
ee5040421f
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ die unless defined $pkgFile;
|
||||||
if (!defined $ENV{"NIX_HAVE_TERMINAL"}) {
|
if (!defined $ENV{"NIX_HAVE_TERMINAL"}) {
|
||||||
$ENV{"NIX_HAVE_TERMINAL"} = "1";
|
$ENV{"NIX_HAVE_TERMINAL"} = "1";
|
||||||
$ENV{"LD_LIBRARY_PATH"} = "";
|
$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'";
|
die "cannot execute `xterm'";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue