util: Don't pass too many arguments to GLib.spawn_async
This commit is contained in:
parent
aa733b5e53
commit
d11027e8c8
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user