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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

arnim.jenett
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)
Reply | Threaded
Open this post in threaded view
|

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

Wayne Rasband
> 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.
>