diff --git a/src/extension.js b/src/extension.js index 2a61b15..927c9c2 100644 --- a/src/extension.js +++ b/src/extension.js @@ -965,7 +965,14 @@ class OpenweatherMenuButton extends PanelMenu.Button { _onPreferencesActivate() { this.menu.actor.hide(); - Util.spawn(["gnome-shell-extension-prefs", "openweather-extension@jenslody.de"]); + if (typeof ExtensionUtils.openPrefs === 'function') { + ExtensionUtils.openPrefs(); + } else { + Util.spawn([ + "gnome-shell-extension-prefs", + Me.uuid + ]); + } return 0; }