#17825 closed defect (fixed)
unable to open geo: URIs from the command line
Reported by: | mlundblad | Owned by: | Don-vip |
---|---|---|---|
Priority: | normal | Milestone: | 19.06 |
Component: | Core | Version: | |
Keywords: | geo uri scheme | Cc: |
Description (last modified by )
Trying to run JOSM with wikipedia:Geo_URI_scheme like:
$ josm geo:60,17
Shows a dialog at startup with a message
"File not found 'geo:60,17'"
I think this is intended to work, as the .desktop file has x-scheme-handler/geo listed.
Thanks!
Attachments (0)
Change History (9)
comment:1 by , 6 years ago
Description: | modified (diff) |
---|---|
Keywords: | geo uri scheme added |
Milestone: | → 19.06 |
Owner: | changed from | to
Status: | new → assigned |
Summary: | Unable to open geo: URIs from the command line → open geo: URIs from the command line |
Type: | defect → enhancement |
comment:2 by , 6 years ago
Summary: | open geo: URIs from the command line → unable to open geo: URIs from the command line |
---|---|
Type: | enhancement → defect |
follow-up: 5 comment:4 by , 6 years ago
With r15180 it works with josm --download=geo:60,17
which is the supposed way to work.
I guess it won't work with your use case described in #17824 (%U in .desktop file).
Does it work if we write josm --download %U
in the .dekstop file? If we do, what happens if josm is run without argument? Is there a better way?
comment:5 by , 6 years ago
Replying to Don-vip:
With r15180 it works with
josm --download=geo:60,17
which is the supposed way to work.
I guess it won't work with your use case described in #17824 (%U in .desktop file).
Does it work if we write
josm --download %U
in the .dekstop file? If we do, what happens if josm is run without argument? Is there a better way?
It works with just %U now!
And it almost works with gnome-maps now, except that we generate a geo: URL of the form:
geo:60.00000,17.000000;crs=wgs84;u=0
This format is according to the spec, but JOSM seems to stuble on it.
Running this from the command line works (without the extra params):
$ josm geo:60.00000,17.00000
I'm almost tempted to just drop the extra parameters for the URLs we pass to apps, I guess WGS84 is the default reference system.
But on the other hand, I guess the correct thing to do would be to fix the parser in JOSM :-)
comment:8 by , 6 years ago
You're welcome :) I didn't understand, do you work for a Linux distribution?
comment:9 by , 6 years ago
I'm the maintainer of GNOME Maps (the map app included with the GNOME desktop). I tend to write some stuff related to news on that, and to some extent OSM on my blog: https://ml4711.blogspot.se
This is also agregated on Planet GNOME: https://planet.gnome.org
You're right, it is supposed to work, Geo URI have been implemented in #13201