diff --git a/src/extension.js b/src/extension.js index 79abb2b..3a550f4 100644 --- a/src/extension.js +++ b/src/extension.js @@ -253,14 +253,10 @@ const WeatherMenuButton = new Lang.Class({ url += "?APPID=" + this._appid; try { - Util.trySpawn(["gnome-open", url]); + Gtk.show_uri(null, url, global.get_current_time()); } catch (err) { - try { - Util.trySpawn(["xdg-open", url]); - } catch (err) { - let title = _("Execution of 'gnome-open' and 'xdg-open' failed.\nCan not open %s").format(url); - Main.notifyError(title, err.message); - } + let title = _("Can not open %s").format(url); + Main.notifyError(title, err.message); } }));