Location portal does not work on NixOS when no agent are installed
bobby285271 opened this issue · comments
What Happened?
(Originally posted in elementary/seeds#100 (comment))
Since pantheon-agent-geoclue2 is not maintained anymore I am trying to follow the change in NixOS but got stuck.
I am actually trying to do some testing with flatpak com.belmoussaoui.ashpd.demo
, for some reasons with the change I can make location requests but no longer can get a LocationUpdated
response, this is not the case when I have either pantheon-agent-geoclue2
or geoclue-demo-agent
installed (natively). Since ubuntu's geoclue-2.0 package provides geoclue-demo-agent
, I am not sure if I should enable that in NixOS also.
We have geoclue 2.7.0 and elementary/default-settings#279, elementary/switchboard-plug-security-privacy#148 are backported when testing.
Steps to Reproduce
- Have no agent installed, including the demo one.
flatpak run com.belmoussaoui.ashpd.demo
- Go to "location" and click "start session"
- Receive no response.
Expected Behavior
Receive LocationUpdated
on org.freedesktop.portal.Location
OS Version
Other Linux
Software Version
Latest release (I have run all updates)
Log Output
No response
Hardware Info
No response
(I will be surprised if this is not my fault 🙃)
I tried running the where-am-i program before and after the change. When having agent installed, both GTK_USE_PORTAL=1 where-am-i
and where-am-i
reports correct location of mine (if that matters).
When having no agent installed, GTK_USE_PORTAL=1 where-am-i
reports CRITICAL **: 23:36:57.492: Failed to connect to GeoClue2 service: Start failed
and where-am-i
reports CRITICAL **: 23:38:07.599: Failed to connect to GeoClue2 service: Timeout was reached
.
looking at geoclue code, we still need the agent to check if the geolocation was disabled system wide and showing the agent for host process that have a .desktop file but isn't using the location portal. removing the agent seems like a error.