Re: IJ searching for IJ_Prefs.txt

Posted by John Minter on
URL: http://imagej.273.s1.nabble.com/IJ-searching-for-IJ-Prefs-txt-tp5020935p5020941.html

Here is a Jython script that gets the directory:

"""
getPrefsDirImageJ.py

ImageJ Jython - J. R. Minter - 2018-07-09

Modifications

   Date     Who   Ver                      What
----------  ---  ------  ---------------------------------------------
2018-07-09  JRM  0.1.00  First implementation

"""
from ij import Prefs

st = Prefs.getPrefsDir()
print(st)
On Mon, Jul 9, 2018 at 9:11 AM Jan Eglinger <[hidden email]> wrote:

>
> Hi Gabriel and John,
>
> I'd assume this depends on what `System.getProperty("user.home")` returns.
>
> See also the source code here:
> https://github.com/imagej/imagej1/blob/68952720e2f98ef1d499ec332b2a8d5ef9476d04/ij/Prefs.java#L269-L281
>
> Jan
>
>
> On 09.07.2018 14:45, John Minter wrote:
> > Hi Gabriel On a windows box, the IJ_Prefs.txt file is stored in
> > C:/Users/username/.imagej/IJ_Prefs.txt
> >
> > Best regards,
> > John Minter
> >
> > On Mon, Jul 9, 2018 at 4:55 AM Gabriel Landini <[hidden email]> wrote:
> >>
> >> Hi,
> >> A windows machine (Win 7 enterprise) uses a remote destop accessible through
> >> the network. When the machine network is off, IJ (installed in Program Files)
> >> cannot find the IJ_Prefs.txt file and cannot Save or Save As... (maybe other
> >> things are not working).
> >> Is there a way of moving the IJ_Prefs.txt file to the local C: drive.
> >> Where is the link to the remote desktop stored?
> >> IJ knows where that file should be located because it complains of not being
> >> accessible when I Quit IJ. Where is that information stored?
> >>
> >> Thanks
> >>
> >> Gabriel
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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