Skip to content
Snippets Groups Projects
Commit ee504042 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Try konsole and gnome-terminal in addition to xterm.

parent 1bdc1529
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,9 @@ die unless defined $pkgFile; ...@@ -12,7 +12,9 @@ die unless defined $pkgFile;
if (!defined $ENV{"NIX_HAVE_TERMINAL"}) { if (!defined $ENV{"NIX_HAVE_TERMINAL"}) {
$ENV{"NIX_HAVE_TERMINAL"} = "1"; $ENV{"NIX_HAVE_TERMINAL"} = "1";
$ENV{"LD_LIBRARY_PATH"} = ""; $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'"; die "cannot execute `xterm'";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment