Passing UUID to gnome-shell-extension-prefs no longer supported
(For context: I don't use this extension myself, but I'm going through GNOME Shell extensions that are packaged in Debian and making sure there are issues open to get them adapted to an upstream change.)
This extension has:
Util.spawn(["gnome-shell-extension-prefs", "openweather-extension@jenslody.de"]);
which will not work since GNOME Shell 3.36.1 (the way extension preferences work has been redone to accommodate the g-s-extension-prefs app being installed via Flatpak or similar).
As far as I can tell from GNOME Shell's upstream commit history, the preferred way to launch extension preferences in sufficiently recent versions is to call imports.misc.extensionUtils.openPrefs(), which was added by gnome-shell!1163. The version in Ubuntu 20.04 doesn't have that function available yet, but hopefully will soon; Debian experimental already has it.
To support older GNOME versions, fall back to the spawn call if imports.misc.extensionUtils doesn't have an openPrefs method.
Sample code: Tudmotu/gnome-shell-extension-clipboard-indicator#203