[gnome-shell] util: Don't pass too many arguments to GLib.spawn_async



commit d11027e8c85c6ac5136acfe495f1fc9d9d8153ea
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Aug 7 15:07:34 2012 -0300

    util: Don't pass too many arguments to GLib.spawn_async

 js/misc/util.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/misc/util.js b/js/misc/util.js
index 2f755cf..fb936c9 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)) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]