weather: Provide application-id and contact-info

Those are now required in order to use any online providers.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3577

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1565>
This commit is contained in:
Florian Müllner 2021-01-12 17:31:15 +01:00 committed by Marge Bot
parent 7458d5ad07
commit d5ca1bc62f

View File

@ -72,7 +72,11 @@ var WeatherClient = class {
GWeather.Provider.METAR |
GWeather.Provider.MET_NO |
GWeather.Provider.OWM;
this._weatherInfo = new GWeather.Info({ enabled_providers: providers });
this._weatherInfo = new GWeather.Info({
enabled_providers: providers,
application_id: 'org.gnome.Shell',
contact_info: 'https://gitlab.gnome.org/GNOME/gnome-shell/-/raw/master/gnome-shell.doap',
});
this._weatherInfo.connect_after('updated', () => {
this._lastUpdate = GLib.DateTime.new_now_local();
this.emit('changed');