Login  Register

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

Posted by ctrueden on Jul 31, 2014; 6:16pm
URL: http://imagej.273.s1.nabble.com/ij-prefs-txt-can-I-change-the-location-tp5009000p5009002.html

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