Login  Register

Re: ij_prefs.txt - can I change the location?

Posted by Katie Nance on Aug 01, 2014; 4:13pm
URL: http://imagej.273.s1.nabble.com/ij-prefs-txt-can-I-change-the-location-tp5009000p5009009.html

Curtis,

Thanks for the tip. I looked in my system environment variables and did not
find that variable, so I created one and set it to where I wanted it.
However, ImageJ still gives me the same message on close. I even went
through the registry and removed any mention of the nonexistent user
profile, still get the same issue.

Any ideas?
-Katie

----------------------------------------
From: "Curtis Rueden" <[hidden email]>
Sent: Thursday, July 31, 2014 12:17 PM

Hi Katie,

> Ideally, I'd like to put the preference file into another folder
> altogether.
>
> Is there any way to change this?  

Try setting the environment variable IJ_PREFS_DIR to your directory of
choice.

Regards,
Curtis

P.S. Relevant code is:
https://github.com/imagej/ImageJA/blob/v1.49d/src/main/java/ij/OtherInstance
.java#L240-L252

On Thu, Jul 31, 2014 at 10:28 AM, Katie Nance <[hidden email]> wrote:
  Hello,

 I've got a weird problem I'm hoping can be solved.

 Upon closing out of ImageJ, I get an error saying that the ij_prefs.txt
 file cannot be found. The reason for this is it is looking in a user
 profile that does not exist, not my own. The user it is looking in has
 never even logged onto the machine, so I don't know where it is getting
 that path from.

 Furthermore, having the preferences in any user profile at all will be an
 issue along the road, since I am installing the program for a computer
 image to deploy to multiple computers. Ideally, I'd like to put the
 preference file into another folder altogether.

 Is there any way to change this?

 Thanks,
 Katie Nance

 --
 ImageJ mailing list: http://imagej.nih.gov/ij/list.html



--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html