elementary / switchboard-plug-display

Switchboard Displays Plug
https://elementary.io
GNU General Public License v3.0
14 stars 18 forks source link

(Privacy)Question: Does the night light setting "sunset to sunrise" require an Internet connection? #239

Closed 4jNsY6fCVqZv closed 4 years ago

4jNsY6fCVqZv commented 4 years ago

Since sunset and sunrise vary daily, I just assume that an internet connection is required for this setting to work. If so, where exactly does this setting get its data from? Maybe there should be a hint for the users to explain this?

4jNsY6fCVqZv commented 4 years ago

@cassidyjames Do you see this as a privacy issue?

davidmhewitt commented 4 years ago

gsd-color is the component that handles this (from the GNOME project). It uses your latitude and longitude to calculate (using good old fashioned trigonometry, based on the rotation of planetary bodies etc) sunrise and sunset times:

https://github.com/GNOME/gnome-settings-daemon/blob/d6bb63fd88e2c92d96ea6bc7a4e43c6756edb460/plugins/color/gsd-night-light-common.c#L50

The location is obtained from GeoClue, which usually uses MLS (https://location.services.mozilla.com/) unless you've disabled it with the location services switch in the settings, or unless you happen to have a supported GPS receiver on your device.

I guess if it can't get a location, this feature just doesn't work.

davidmhewitt commented 4 years ago

Given that this was a question, not a bug report, I'll close this as I feel I have adequately answered the question for now.

Please feel free to follow up if necessary.