You are not logged in.
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
pacman -Qikk geoclue
Offline
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
systemctl status geoclue.service
qdbus --system | grep -i geoclue
qdbus | grep -i geoclue
Offline
It's working now. Thanks! I didn't realize that geoclue is a service.
By the way, shouldn't geoclue2 be a dependency?
Offline
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
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
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
Ftr, did enabling the demo agent work in your case?
Offline
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