search: Use Util.spawn rather then Shell.Process

Shell.Process has been removed in favor of Util.spawn* so use that
instead.
This commit is contained in:
Adel Gadllah 2011-01-17 23:05:30 +01:00
parent b0c6cf3fc5
commit cf49882e96

View File

@ -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();