You are not logged in.

#1 2024-04-30 12:47:57

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 38

[RESOLVED] Falkon not enabling geolocation

Hi there,
I am evaluating Falkon on Sway (with XWayland on) and I noticed that geolocation is not working as expected.

When I open a site that requires geolocation, I am prompted with the usual  pop-up requesting geolocation permissions. I select the "Remember" option, click on Allow, and reload the page, but the site still fails the test.

In the preferences, I verified that the site is whitelisted in the HTML5 permissions settings, under geolocation.

On some sites, reloading a page multiple times occasionally shows the geolocation as working, but then it goes away again.

I am running on a workstation, and am not on a VPN.

Running from the command line, this feedback shows:

Falkon: Python plugin support initialized
Falkon: 1 extensions loaded
qt.positioning.geoclue2: Already running
qt.positioning.geoclue2: Already running
qt.positioning.geoclue2: Unable to obtain the client patch: "org.freedesktop.DBus.Error.ServiceUnknownThe name is not activatable"

The last 3 lines appear when I send a geolocation request.

Any hints?

Thanks.
gm

Last edited by gattu_marrudu (2024-05-01 17:46:25)

Offline

#2 2024-04-30 15:24:31

seth
Member
Registered: 2012-09-03
Posts: 52,316

Re: [RESOLVED] Falkon not enabling geolocation

pacman -Qikk geoclue

Offline

#3 2024-04-30 18:23:11

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 38

Re: [RESOLVED] Falkon not enabling geolocation

OK, geoclue wasn't installed and now it is (v2.7.1-2).

But now:

qt.positioning.geoclue2: Unable to obtain the client patch: "org.freedesktop.DBus.Error.NoReplyDid not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."

Offline

#4 2024-04-30 20:20:49

seth
Member
Registered: 2012-09-03
Posts: 52,316

Re: [RESOLVED] Falkon not enabling geolocation

systemctl status geoclue.service
qdbus --system | grep -i geoclue
qdbus | grep -i geoclue

Offline

#5 2024-05-01 12:35:39

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 38

Re: [RESOLVED] Falkon not enabling geolocation

It's working now. Thanks! I didn't realize that geoclue is a service.

By the way, shouldn't geoclue2 be a dependency?

Offline

#6 2024-05-01 12:40:22

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 38

Re: [RESOLVED] Falkon not enabling geolocation

I guess I spoke too soon:

qt.positioning.geoclue2: Unable to obtain the client patch: "org.freedesktop.DBus.Error.NoReplyRemote peer disconnected"
$ systemctl status geoclue.service
○ geoclue.service - Location Lookup Service
     Loaded: loaded (/usr/lib/systemd/system/geoclue.service; static)
     Active: inactive (dead)

Apr 30 14:23:06 workstation1 geoclue[45156]: Service not used for 60 seconds. Shutting down..
Apr 30 14:23:06 workstation1 systemd[1]: geoclue.service: Deactivated successfully.
May 01 08:33:30 workstation1 systemd[1]: Starting Location Lookup Service...
May 01 08:33:30 workstation1 systemd[1]: Started Location Lookup Service.
May 01 08:34:30 workstation1 geoclue[60908]: Service not used for 60 seconds. Shutting down..
May 01 08:34:30 workstation1 systemd[1]: geoclue.service: Deactivated successfully.
May 01 08:37:16 workstation1 systemd[1]: Starting Location Lookup Service...
May 01 08:37:16 workstation1 systemd[1]: Started Location Lookup Service.
May 01 08:38:16 workstation1 geoclue[61176]: Service not used for 60 seconds. Shutting down..
May 01 08:38:16 workstation1 systemd[1]: geoclue.service: Deactivated successfully.

$ qdbus --system | grep -i geoclue

$ qdbus | grep -i geoclue

It looks like geoclue keeps going down even when I start it manually.

Last edited by gattu_marrudu (2024-05-01 12:41:31)

Offline

#7 2024-05-01 13:34:29

seth
Member
Registered: 2012-09-03
Posts: 52,316

Re: [RESOLVED] Falkon not enabling geolocation

Because

May 01 08:38:16 workstation1 geoclue[61176]: Service not used for 60 seconds. Shutting down..

Try https://wiki.archlinux.org/title/Redshi … to_GeoClue


You could file a bug to make geoclue an *optional* dependency for qt6-webengine or falkon (it is for the webkit2gtk packages)
Is should most certainly not be a hard dependency to anything. Hardly anything actually *needs* geolocation, it's more that it's tradeable data…

Offline

#8 2024-05-01 16:01:03

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 38

Re: [RESOLVED] Falkon not enabling geolocation

That makes sense. Thanks.

I think an optional dependency would give a hint to users who want to enable geolocation for particular tasks (I myself have almost always off with very few exceptions), so I agree that would be a good approach.

Offline

#9 2024-05-01 16:24:04

seth
Member
Registered: 2012-09-03
Posts: 52,316

Re: [RESOLVED] Falkon not enabling geolocation

Ftr, did enabling the demo agent work in your case?

Offline

#10 2024-05-01 17:45:47

gattu_marrudu
Member
Registered: 2008-03-29
Posts: 38

Re: [RESOLVED] Falkon not enabling geolocation

Yes, I followed the instructions in the link you provided and started it as a user service. I actually need it for wlsunset as well.

Offline

Board footer

Powered by FluxBB