[gnome-shell] search: Use Util.spawn rather then Shell.Process



commit cf49882e96fe9620e289ff7126e6ebadb5c7a82a
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Mon Jan 17 23:05:30 2011 +0100

    search: Use Util.spawn rather then Shell.Process
    
    Shell.Process has been removed in favor of Util.spawn* so use that
    instead.

 js/ui/search.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index 926abb7..f7be6af 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -5,6 +5,7 @@ const GLib = imports.gi.GLib;
 const Lang = imports.lang;
 const Signals = imports.signals;
 const Shell = imports.gi.Shell;
+const Util = imports.misc.util;
 
 const Gettext = imports.gettext.domain('gnome-shell');
 const _ = Gettext.gettext;
@@ -278,8 +279,7 @@ OpenSearchSystem.prototype = {
         } catch (e) {
             // TODO: remove this after glib will be removed from moduleset
             // In the default jhbuild, gio is in our prefix but gvfs is not
-            let p = new Shell.Process({ 'args' : ['gvfs-open', url] });
-            p.run();
+            Util.spawn(['gvfs-open', url])
         }
 
         Main.overview.hide();



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