Skip to content

Add handler for fiji://open/... links #68

Description

@xulman

User Story

A website with hyperlinks to remote OME-Zarrs can present the links using a special fiji:// scheme. For example, this HTML file

<html>
<head></head>
<body>
<p>A "normal" link to some remote Zarr dataset: <a href="https://haniffa.cog.sanger.ac.uk/fetal-immune/fetal-liver/visium/0.0.1/visium_1_raw.zarr">http link</a></p>
<p>A Fiji link to some remote Zarr dataset: <a href="fiji://open/url?p=https://haniffa.cog.sanger.ac.uk/fetal-immune/fetal-liver/visium/0.0.1/visium_1_raw.zarr">fiji remote link</a>
<p>A Fiji link to some local/on-disk Zarr dataset: <a href="fiji://open/file?p=/home/ulman/vyuka/Bc_slNoskova/datasety/CTC_CHOas2D_02_bigChunks_v2_blosc_zlib.zarr">fiji local link</a>
</body>
</html>

will, of course, show three links, with the latter two requiring a dedicated URL handler to open them. This shall be Fiji itself, and it could, for example, follow the current DnD opening behavior upon clicking any of the two links.

The middle link fiji://open/url?p=.... is the desired one here.

However, it is also possible to refer to local sources. This could be a way to associate the local viewer with OME-Zarr folders, much like one can associate one's favorite image viewer with TIFFs or PNGs. Clicking an OME-Zarr folder in the file browser could open it in Fiji.

Current thoughts

Based on community suggestions, the solution can be based on

This requires installing scijava-desktop-1.0.0.jar into your_Fiji.app/jars, and this package from the fiji_links branch. Registration with the OS can be made comfortably using Fiji -> Edit -> Options -> Desktop....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions