NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1419 (closed enhancement: moved)

Opened 2012-08-17T12:14:57-05:00

Last modified 2013-04-15T10:17:16-05:00

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

Description

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 2012-08-17T12:15:12-05:00 by dscho

  • Status changed from new to accepted

comment:2 Changed 2013-01-22T14:51:49-06:00 by bdezonia

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

comment:3 Changed 2013-04-15T10:17:16-05:00 by curtis

  • Milestone changed from imagej2-unscheduled to imagej-2.1.0

comment:4 Changed 2014-05-11T09:36:34-05:00 by curtis

  • Status changed from accepted to closed
  • Resolution set to moved