Ticket #1419 (closed enhancement: moved)

Opened 8 years ago

Last modified 7 years ago

Make DefaultPlatform.open() return quickly, always

Reported by: dscho Owned by: dscho
Priority: minor Milestone: imagej-2.1.0
Component: Core Version:
Severity: minor Keywords:
Cc: Blocked By:
Blocking: #1349


On MacOSX and Windows, open(url) will return immediately. On Linux, open(url) will immediately only if there was already a running web browser instance.

We might need to do something as hacky as trying to execute the launcher, waiting for 50ms and checking whether Process.exitValue() indicates that the executable was not found (it throws an IllegalThreadStateException if the process has not yet terminated). Probably it would be a good idea to wait a little bit longer to see whether it still wants to terminate with an error code, just in case the machine was busy.

This change is needed to make things behave consistently between platforms.

Change History

comment:1 Changed 8 years ago by dscho

  • Status changed from new to accepted

comment:2 Changed 7 years ago by bdezonia

  • Milestone changed from imagej2-b7-ndim-data to imagej2-unscheduled

comment:3 Changed 7 years ago by curtis

  • Milestone changed from imagej2-unscheduled to imagej-2.1.0

comment:4 Changed 6 years ago by curtis

  • Status changed from accepted to closed
  • Resolution set to moved
Note: See TracTickets for help on using tickets.