From d11027e8c85c6ac5136acfe495f1fc9d9d8153ea Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 7 Aug 2012 15:07:34 -0300 Subject: [PATCH] util: Don't pass too many arguments to GLib.spawn_async --- js/misc/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/misc/util.js b/js/misc/util.js index 2f755cf96..fb936c941 100644 --- a/js/misc/util.js +++ b/js/misc/util.js @@ -84,7 +84,7 @@ function trySpawn(argv) try { [success, pid] = GLib.spawn_async(null, argv, null, GLib.SpawnFlags.SEARCH_PATH | GLib.SpawnFlags.DO_NOT_REAP_CHILD, - null, null); + null); } catch (err) { /* Rewrite the error in case of ENOENT */ if (err.matches(GLib.SpawnError, GLib.SpawnError.NOENT)) {