Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location portal does not work on NixOS when no agent are installed #80

Open
bobby285271 opened this issue May 25, 2023 · 2 comments
Open

Comments

@bobby285271
Copy link
Member

bobby285271 commented May 25, 2023

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

  1. Have no agent installed, including the demo one.
  2. flatpak run com.belmoussaoui.ashpd.demo
  3. Go to "location" and click "start session"
  4. 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

@bobby285271
Copy link
Member Author

(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.

@Marukesu
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants