about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-21T11·29+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-21T11·29+0000
commitee5040421ff442ec62db25f35874d9a27f9a646f (patch)
tree3bba5df90c3834cd55c507743448d414c4cb4ab9 /scripts
parent1bdc152931b2da66d896199e22defa70eaec9eff (diff)
* Try konsole and gnome-terminal in addition to xterm.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/nix-install-package.in4
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'";
 }