Login  Register

Re: Ubuntu - Run single instance listener

Posted by Gluender-4 on Apr 28, 2011; 9:19am
URL: http://imagej.273.s1.nabble.com/Ubuntu-Run-single-instance-listener-tp3684690p3684699.html

Ghislain,

in a post to this list dated 12. April 2011 Johannes Schindelin wrote
in response to your request:

"
>  [...] Nevertheless,
>  multiple instances of ImageJ are still launched when i try to open several
>  images at the same time (while ImageJ isn't open yet).
>  Normal or strange behavior ?

Expected. Java needs to start up, then ImageJ, and only then can the
single-instance listener start up. Before that, the other ImageJ instances
have no chance to realize that there is another instance running.

Work-around: start one instance of ImageJ early.

Hth,
Johannes
"


>Dear all,
>
>Sorry for asking again, but it seems that my previous message (13th
>of april) was ignored because somebody answered by asking another
>question...
>
>I'm trying to correct a strange behavior of imagej on Ubuntu : when
>opening several images at the same time while ImageJ isn't started,
>the single instance listener (if checked in misc. options) doesn't
>work and one instance is started for each image.
>If ImageJ is already open, it works well (with imageJ 1.45e)
>
>I can't repeat this on MacOSX, that's why I try to correct the bug. :)
>
>I learned how to compile ImageJ, so I can test any idea of yours, if
>you tell me what to modify in the source code !
>
>Ghislain

HTH
--

                   Herbie

          ------------------------
          <http://www.gluender.de>