mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 08:42:30 +00:00
* Try konsole and gnome-terminal in addition to xterm.
This commit is contained in:
parent
1bdc152931
commit
ee5040421f
@ -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'";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user