[gnome-shell] utils: Adjust trySpawnCommandLine() to gjs changes



commit 6fc49b79a4e957f2442abcb23fafa33e1af64241
Author: Florian MÃllner <fmuellner gnome org>
Date:   Thu Jun 23 23:55:49 2011 +0200

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



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