mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
* 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"}) {
|
||||
$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 a new issue