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:
parent
b0c6cf3fc5
commit
cf49882e96
@ -5,6 +5,7 @@ const GLib = imports.gi.GLib;
|
|||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
|
const Util = imports.misc.util;
|
||||||
|
|
||||||
const Gettext = imports.gettext.domain('gnome-shell');
|
const Gettext = imports.gettext.domain('gnome-shell');
|
||||||
const _ = Gettext.gettext;
|
const _ = Gettext.gettext;
|
||||||
@ -278,8 +279,7 @@ OpenSearchSystem.prototype = {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
// TODO: remove this after glib will be removed from moduleset
|
// TODO: remove this after glib will be removed from moduleset
|
||||||
// In the default jhbuild, gio is in our prefix but gvfs is not
|
// In the default jhbuild, gio is in our prefix but gvfs is not
|
||||||
let p = new Shell.Process({ 'args' : ['gvfs-open', url] });
|
Util.spawn(['gvfs-open', url])
|
||||||
p.run();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Main.overview.hide();
|
Main.overview.hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user