weather: Change Weather app ID
As of 9f7f5a68d4
Weather uses
org.gnome.Weather everywhere instead of org.gnome.Weather.Application.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/379
This commit is contained in:
parent
ba97e8da7a
commit
409a27c3b8
@ -61,8 +61,8 @@ var WeatherClient = class {
|
|||||||
this.emit('changed');
|
this.emit('changed');
|
||||||
});
|
});
|
||||||
|
|
||||||
this._weatherAppMon = new Util.AppSettingsMonitor('org.gnome.Weather.Application.desktop',
|
this._weatherAppMon = new Util.AppSettingsMonitor('org.gnome.Weather.desktop',
|
||||||
'org.gnome.Weather.Application');
|
'org.gnome.Weather');
|
||||||
this._weatherAppMon.connect('available-changed', () => { this.emit('changed'); });
|
this._weatherAppMon.connect('available-changed', () => { this.emit('changed'); });
|
||||||
this._weatherAppMon.watchSetting('automatic-location',
|
this._weatherAppMon.watchSetting('automatic-location',
|
||||||
this._onAutomaticLocationChanged.bind(this));
|
this._onAutomaticLocationChanged.bind(this));
|
||||||
@ -234,7 +234,7 @@ var WeatherClient = class {
|
|||||||
if (table != 'gnome' || id != 'geolocation')
|
if (table != 'gnome' || id != 'geolocation')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let permission = perms['org.gnome.Weather.Application'] || ['NONE'];
|
let permission = perms['org.gnome.Weather'] || ['NONE'];
|
||||||
let [accuracy] = permission;
|
let [accuracy] = permission;
|
||||||
this._weatherAuthorized = accuracy != 'NONE';
|
this._weatherAuthorized = accuracy != 'NONE';
|
||||||
|
|
||||||
|
@ -36,13 +36,14 @@ const RENAMED_DESKTOP_IDS = {
|
|||||||
'gnome-software.desktop': 'org.gnome.Software.desktop',
|
'gnome-software.desktop': 'org.gnome.Software.desktop',
|
||||||
'gnome-terminal.desktop': 'org.gnome.Terminal.desktop',
|
'gnome-terminal.desktop': 'org.gnome.Terminal.desktop',
|
||||||
'gnome-tweaks.desktop': 'org.gnome.tweaks.desktop',
|
'gnome-tweaks.desktop': 'org.gnome.tweaks.desktop',
|
||||||
'gnome-weather.desktop': 'org.gnome.Weather.Application.desktop',
|
'gnome-weather.desktop': 'org.gnome.Weather.desktop',
|
||||||
'gnomine.desktop': 'gnome-mines.desktop',
|
'gnomine.desktop': 'gnome-mines.desktop',
|
||||||
'gnotravex.desktop': 'gnome-tetravex.desktop',
|
'gnotravex.desktop': 'gnome-tetravex.desktop',
|
||||||
'gnotski.desktop': 'gnome-klotski.desktop',
|
'gnotski.desktop': 'gnome-klotski.desktop',
|
||||||
'gtali.desktop': 'tali.desktop',
|
'gtali.desktop': 'tali.desktop',
|
||||||
'iagno.desktop': 'org.gnome.Iagno.desktop',
|
'iagno.desktop': 'org.gnome.Iagno.desktop',
|
||||||
'nautilus.desktop': 'org.gnome.Nautilus.desktop',
|
'nautilus.desktop': 'org.gnome.Nautilus.desktop',
|
||||||
|
'org.gnome.Weather.Application.desktop': 'org.gnome.Weather.desktop',
|
||||||
'polari.desktop': 'org.gnome.Polari.desktop',
|
'polari.desktop': 'org.gnome.Polari.desktop',
|
||||||
'totem.desktop': 'org.gnome.Totem.desktop',
|
'totem.desktop': 'org.gnome.Totem.desktop',
|
||||||
'evince.desktop': 'org.gnome.Evince.desktop',
|
'evince.desktop': 'org.gnome.Evince.desktop',
|
||||||
|
Loading…
Reference in New Issue
Block a user