Login  Register

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

Posted by Wayne Rasband on Jun 26, 2009; 8:04pm
URL: http://imagej.273.s1.nabble.com/getDirectory-temp-tmp-anymore-tp3691985p3691986.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")?

The old behavior is back in the ImageJ 1.43c daily build.

-wayne

>
> 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)
>
> --  
> View this message in context:  
> http://n2.nabble.com/getDirectory%28%22temp%22%29-%21%3D--tmp-- 
> anymore-tp3163342p3163342.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>