utils: Adjust trySpawnCommandLine() to gjs changes

(out) arrays now no longer return the array length separately, adjust
to this change.
This commit is contained in:
Florian Müllner 2011-06-23 23:55:49 +02:00
parent 9e804b082f
commit 6fc49b79a4

View File

@ -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