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 |
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 |
On Monday, 9 July 2018 13:45:09 BST you wrote:
> Hi Gabriel On a windows box, the IJ_Prefs.txt file is stored in > C:/Users/username/.imagej/IJ_Prefs.txt Thanks John, It wasn't in my machine :-( I decided to reinstall IJ without a network connection and now it has created the file where it should, so it seems to work fine. The file did not exist in the remote desktop either. I have no explanation of how this has happened. I found it strange that it would be looking for a given location in the network drive holding the remote desktop (and assumed that this information is stored somewhere). Cheers Gabriel -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by John Minter
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 |
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 |
Free forum by Nabble | Edit this page |