Commit 6fc49b79 authored by Florian Müllner's avatar Florian Müllner

utils: Adjust trySpawnCommandLine() to gjs changes

(out) arrays now no longer return the array length separately, adjust
to this change.
parent 9e804b08
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment