Hi!
When creating a Flatpak bundle for Fiji, I stumbled upon this issue which was fairly hard to find even though it's quite simple.
Flatpak doesn't save mtimes, which trips up imagej-launcher and makes it refuse to launch anything.
Regardless of this quirk, if stat worked the file exists and we should consider it for launching, so checking for bigger-or-equal zero is the slightly more correct behavior.
Merging this helps the Flatpak Fiji PR at https://github.com/fiji/fiji-builds/pull/8, so we don't need to carry an extra patch.
It should also not cause any problems with existing installations.
Thanks for considering!
Hi! When creating a Flatpak bundle for Fiji, I stumbled upon this issue which was fairly hard to find even though it's quite simple. Flatpak doesn't save mtimes, which trips up imagej-launcher and makes it refuse to launch anything. Regardless of this quirk, if stat worked the file exists and we should consider it for launching, so checking for bigger-or-equal zero is the slightly more correct behavior. Merging this helps the Flatpak Fiji PR at https://github.com/fiji/fiji-builds/pull/8, so we don't need to carry an extra patch. It should also not cause any problems with existing installations. Thanks for considering!