Login  Register

getDirectory("temp") != /tmp/ anymore

Posted by arnim.jenett on Jun 26, 2009; 6:59pm
URL: http://imagej.273.s1.nabble.com/getDirectory-temp-tmp-anymore-tp3691985.html

Hi,
I think since I updated to the current java version (see below) the macro command getDirectory("temp") does not yield "/tmp/" anymore but some arbitrary path like "/var/folders/C-/C-bqCJHiFxOuNwlNmBmRG1UNxXY/-Tmp-/".
This is rather inconvenient, because I write temporary files to the result of getDirectory("temp") and the arbitrary path appears to be dependent to the instance of imagej/fiji. By this I can not exchange temporary files from one instance to the other anymore. In the moment I worked around this by hard coding to /tmp/ but I am afraid that this will not be accepted on other systems.

Is there a way to get back the old behavior of getDirectory("temp")?

aRnim

  os.arch => x86_64
  os.name => Mac OS X
  os.version => 10.5.6

  java version "1.6.0_13"
  Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
  Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)