[gnome-shell] weather: Provide application-id and contact-info



commit d5ca1bc62f4e5d8afe1631f03fba9b241944239e
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Jan 12 17:31:15 2021 +0100

    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>

 js/misc/weather.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/js/misc/weather.js b/js/misc/weather.js
index 0c293bf253..a8b8f6cacd 100644
--- a/js/misc/weather.js
+++ b/js/misc/weather.js
@@ -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');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]