title: SimpleITK.Show() generates error in ImageJ on Linux
body: <p>EDIT NOTE:
  This question was originally phrased as</p>
  
  <p>How to link SimpleITK.Show() to imageJ in linux?</p>
  
  <p>By upgrading SimpleITK 1.0.0 to 1.0.1, I was able to launch ImageJ from SimpleITK.Show(). However, ImageJ is unable to open "sample_mri.hdr". ImageJ generates the following error messages.</p>
  
  <blockquote>
    <p>File is not in a supported format, a reader</p>
    
    <p>plugin is not available, or it was not found.</p>
    
    <p>root/local/linux/ImageJ/open("/temp/TempFile-7131-2.nii");</p>
    
    <p>root/local/linux/ImageJ/rename("/temp/TempFile-7131-2.nii");</p>
  </blockquote>
  
  <p>I have installed the appropriate plugins for ImageJ to read hdr/img (Analyze format). I can open "sample_mri.hdr" from ImageJ directly by going to file>open</p>
  
  <p>debug messages:</p>
  
  <pre><code>sitk.Show(img, 'sample image', debugOn=True)
  </code></pre>
  
  <blockquote>
    <p>FindApplication search path: [ ./Fiji.app, /cis/home/vwang/bin/Fiji.app, ~/bin/Fiji.app, /opt/Fiji.app, /usr/local/Fiji.app ]</p>
    
    <p>Result: </p>
    
    <p>FindApplication search path: [ ./Fiji.app, /cis/home/vwang/bin/Fiji.app, ~/bin/Fiji.app, /opt/Fiji.app, /usr/local/Fiji.app ]</p>
    
    <p>Result: </p>
    
    <p>FindApplication search path: [ ./ImageJ, /cis/home/vwang/bin/ImageJ, ~/bin/ImageJ, /opt/ImageJ, /usr/local/ImageJ ]</p>
    
    <p>Result: </p>
    
    <p>FindApplication search path: [ ./, /cis/home/vwang/bin/, ~/bin/, /opt/, /usr/local/ ]</p>
    
    <p>Result: /usr/local/bin/ImageJ</p>
    
    <p>Show command: '/usr/local/bin/ImageJ' '-e' 'open("/tmp/sample-4434-0.nii"); rename("sample");' </p>
  </blockquote>
  
  <p>plugins:</p>
  
  <ul>
  <li><a href="https://imagej.nih.gov/ij/plugins/analyze.html" rel="nofollow noreferrer">https://imagej.nih.gov/ij/plugins/analyze.html</a></li>
  <li><a href="https://imagej.nih.gov/ij/plugins/nifti.html" rel="nofollow noreferrer">https://imagej.nih.gov/ij/plugins/nifti.html</a>
  
  <hr></li>
  </ul>
  
  <p>How to link SimpleITK.Show() to imageJ in linux?</p>
  
  <p>I've downloaded ImageJ and I can view images by running ImageJ directly. A similar question was asked and answered in the past (<a href="https://stackoverflow.com/questions/43215774/can-not-linksimpleitkshow-with-fiji">Can not &quot;link&quot;SimpleITK::Show() with FIJI</a>), but the solution was for windows OS. What is the unix equivalent of </p>
  
  <pre><code>setx SITK_SHOW_COMMAND "C:\blah\blah\ImageJ\ImageJ.exe
  </code></pre>
  
  <p>My python code:</p>
  
  <pre><code>import SimpleITK as sitk
  
  img = sitk.ReadImage("sample_mri.hdr")
  sitk.Show(img, 'sample image')
  </code></pre>
  
  <p>Error message:</p>
  
  <pre><code>    return _SimpleITK.Show(*args, **kwargs)
  RuntimeError: Exception thrown in SimpleITK Show: 
  /tmp/SimpleITK/Code/IO/src/sitkShow.cxx:500:
  sitk::ERROR: Error in administrating child process: [No such file or directory]
  </code></pre>