NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #695 (closed defect: fixed)

Opened 2012-04-04T16:09:39-05:00

Last modified 2012-04-04T16:15:27-05:00

SLIMPlugin: Problem finding LUT when running from a shortcut.

Reported by: aivar Owned by: aivar
Priority: major Milestone: slimplugin1.0
Component: slim-plugin Severity: serious
Keywords: Cc:
Blocked By: Blocking:

Description

When running Fiji from a shortcut under Linux, the file "lifetime.lut" could not be found.

Change History

comment:1 Changed 2012-04-04T16:15:27-05:00 by aivar

  • Status changed from new to closed
  • Resolution set to fixed

There was a problem finding the lut directory.

IJ.getDirectory("luts") returns null for me under NetBeans (I do have a luts directory at top level of my project). Therefore I was using IJ.getDirectory("startup"). However I found that at least under Linux when you run from a link or shortcut the directory you get is the directory of the shortcut.

Solution is to look for "luts" first and use if non-null, otherwise look for "startup" and append "luts".