diff options
-rw-r--r-- | scripts/nix-install-package.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/nix-install-package.in b/scripts/nix-install-package.in index f067af43d996..7959070c0a66 100644 --- a/scripts/nix-install-package.in +++ b/scripts/nix-install-package.in @@ -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'"; } |