From ee5040421ff442ec62db25f35874d9a27f9a646f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Sep 2006 11:29:14 +0000 Subject: [PATCH] * Try konsole and gnome-terminal in addition to xterm. --- scripts/nix-install-package.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/nix-install-package.in b/scripts/nix-install-package.in index f067af43d..7959070c0 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'"; }