Xfce Forum

Sub domains

You are not logged in.

#1 2023-03-14 11:35:29

Registered: 2014-11-20
Posts: 2

geo: links and exo

I'm on xUbuntu 22.04 and I'm trying to figure out why opening a geo link like


opens Firefox with Google Maps with different coordinates: https://www.google.com/maps/@52.9924096,15.1945216,14z

I've tracked it to exo-open and I'm stuck. There's nothing in Default Applications relating to geo. It's also not passing the geo: link to Firefox because when you open it directly with ff:

firefox geo:53.2074755,14.9456410

Firefox asks nicely which map service to use ("Choose an application to open the geo link", and Google Maps is one of the options).

I've read the manual to exo-open and skimmed the source code and found nothing that helps me here. I'd like to know if there's a config file or a setting that I can tweak - preferably to not use Google Maps, but if that's impossible, at least to have Google Maps open the correct location.

For broader context: I'm clicking the link in an XMPP client, the Android program Conversations sends your location in this format.


#2 2023-03-14 19:17:51

From: Canada
Registered: 2011-06-02
Posts: 10,020

Re: geo: links and exo

Hello and welcome.

Geo links don't open unless you have an application installed that can handle the links. If I install gnome-maps, it opens the location to Rezerwat Brodogory (which appears to be the correct location).

exo-open geo:53.2074755,14.9456410

...then also works for me.

Does Google Maps create any mime assocations?

xdg-mime query default x-scheme-handler/geo
xdg-mime query default application/vnd.geo+json

Perhaps try with gnome-maps to see if you get similar results. If gnome-apps works, then its probably a bug with Google Maps.

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---


#3 2023-03-14 20:14:29

Registered: 2014-11-20
Posts: 2

Re: geo: links and exo

Thank you for your answer. I haven't explicitly installed anything Google Maps - related but it seems that xubuntu installs it for me - and it's using kde-geo-uri-handler!?

I'll figure it out from there, thanks, if someone is curious I'm pasting what I've found in my system.

➜  ~ xdg-mime query default x-scheme-handler/geo

➜  ~ xdg-mime query default application/vnd.geo+json
➜  ~ find /usr ~ -name google-maps-geo-handler.desktop 2>/dev/null
➜  ~ apt-file search /usr/share/applications/google-maps-geo-handler.desktop
libkf5guiaddons-data: /usr/share/applications/google-maps-geo-handler.desktop
[Desktop Entry]
Exec=kde-geo-uri-handler --coordinate-template "https://www.google.com/maps/@<LAT>,<LON>,<Z>" --query-template "https://www.google.com/maps/search/<Q>" --fallback "https://www.google.com/maps/" %u
Name=Google Maps
Name[ca]=Google Maps
Name[cs]=Mapy Google
Name[en_GB]=Google Maps
Name[es]=Google Maps
Name[fr]=Google Maps
Name[hi]=गूगल मैप्स
Name[it]=Mappe di Google
Name[ko]=Google 지도
Name[nl]=Google Maps
Name[ro]=Hărți Google
Name[sk]=Google Maps
Name[sl]=Google Maps
Name[sv]=Google kartor
Name[uk]=Карти Google
Name[x-test]=xxGoogle Mapsxx
Name[zh_CN]=Google Maps

Edit: well - not xubuntu itself is at fault - but if I want to remove that KDE package, it also removes gwenview, k3b and yakuake programs that I installed. Crazy world, you install a picture viewer, CD burner and a terminal and you get Google Maps associated with geo: links.

Last edited by gdr (2023-03-14 20:16:31)


Board footer

Powered by FluxBB