mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
weather: Stop accessing app settings directly
Our current Weather integration depends on poking around the app's settings, which we cannot do when the app is sandboxed (as its filesystem is "hidden away" in a container in that case). So instead, use our own GSettings schema for the settings, and sync it with GNOME Weather via a custom D-Bus interface. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1158
This commit is contained in:
parent
8f3554ff3e
commit
933c037c6e
4 changed files with 107 additions and 11 deletions
16
data/dbus-interfaces/org.gnome.Shell.WeatherIntegration.xml
Normal file
16
data/dbus-interfaces/org.gnome.Shell.WeatherIntegration.xml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<node>
|
||||
|
||||
<!--
|
||||
org.gnome.Shell.WeatherIntegration:
|
||||
@short_description: Weather integration interface
|
||||
|
||||
The interface used for exporting location settings to GNOME Shell's
|
||||
weather integration.
|
||||
-->
|
||||
<interface name="org.gnome.Shell.WeatherIntegration">
|
||||
|
||||
<property name="AutomaticLocation" type="b" access="read"/>
|
||||
<property name="Locations" type="av" access="read"/>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
Loading…
Add table
Add a link
Reference in a new issue