From 6fc49b79a4e957f2442abcb23fafa33e1af64241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 23 Jun 2011 23:55:49 +0200 Subject: [PATCH] utils: Adjust trySpawnCommandLine() to gjs changes (out) arrays now no longer return the array length separately, adjust to this change. --- js/misc/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/misc/util.js b/js/misc/util.js index a876649b8..e63876e99 100644 --- a/js/misc/util.js +++ b/js/misc/util.js @@ -85,10 +85,10 @@ function trySpawn(argv) // Runs @command_line in the background. If launching @command_line // fails, this will throw an error. function trySpawnCommandLine(command_line) { - let success, argc, argv; + let success, argv; try { - [success, argc, argv] = GLib.shell_parse_argv(command_line); + [success, argv] = GLib.shell_parse_argv(command_line); } catch (err) { // Replace "Error invoking GLib.shell_parse_argv: " with // something nicer