Opened 2 years ago
Last modified 2 years ago
#22334 new enhancement
Use association element on java web start
Reported by: | lucumon | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core Webstart | Version: | |
Keywords: | Cc: |
Description
Hi! I'm willing if you can update your .jnlp file, in order to be able to tell the operating system that .osm and .osm.gz files should be opened with JOSM. This is achieved using the "association" element in the .jnlp file.
Here is an example: https://stackoverflow.com/questions/2878914/jnlp-file-association-how-do-i-open-the-file-which-was-double-clicked-on
Attachments (0)
Change History (2)
comment:2 by , 2 years ago
Milestone: | 22.09 |
---|
This does not appear to work, unfortunately. Taking a look at the IcedTea (webstart) code (https://github.com/AdoptOpenJDK/IcedTea-Web), while they do parse the entries, they don't actually do anything with them. While it is technically very easy to add the association data, I'm not going to since the syntax for extensions is kind of unclear. Is it just the bare extension (osm
), the extension plus the dot (.osm
), or a regex (.*.osm
). The samples I've seen are more of a regex (*.osm
), but without the implementation being there, I don't want to commit something, and have people assume it works when it doesn't.
Note: I don't particularly care about Oracle Webstart (Java 8), as we are planning on moving to Java 11+ (see #17858).
It looks like this should be fairly easy to do.
native/josm.jnlp
EDIT: It looks like the DTD doesn't like association.