getDir(“startup”) - Returns the path to the directory that ImageJ was launched from.
I have ImageJ in my machine:
$ which ImageJ /usr/bin/ImageJ $ ls -l $(which fiji) lrwxrwxrwx 1 root root 24 Dec 16 17:33 /usr/bin/fiji -> /opt/fiji/ImageJ-linux64 $ ImageJ --headless --console -eval "print(getVersion());" | tail -n 1 2.1.0/1.53g
I want to open files from my shell working directory with ImageJ and I was expecting that
getDir("startup") would return my shell working directory but it returns the directory where I have ImageJ installed:
$ pwd /home/raniere $ ImageJ --headless --console -eval "print(getDir('startup'));" /opt/fiji/
I think this is a bug because ImageJ has
getDir("imagej") that will “returns the path to the ImageJ directory”.
$ ImageJ --headless --console -eval "print(getDir('imagej'));" /opt/fiji/
Can you confirm that I find a bug?