Ticket #695 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

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:


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

Change History

comment:1 Changed 8 years ago 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".

Note: See TracTickets for help on using tickets.