<div><font face="Arial"><font color="#0000ff"><font size="2"><span>[[[ejs]]] This is odd... according to <a href="https://wiki.ubuntu.com/DashAsBinSh" target="_blank">https://wiki.ubuntu.com/DashAsBinSh</a> , 
  the script and use of functions should be portable to bash or dash (I also use 
  dash).  Is there some sort of environment setting which is influencing 
  the default behavior of your script? </span></font></font></font><br></div><div><font face="Arial"><font color="#0000ff"><font size="2"><span><br></span></font></font></font></div><div><font face="Arial"><font size="2"><span><font color="#000000">Not that I know of. what environment variable do you suspect?</font></span></font></font><font face="Arial"><font color="#0000ff"><font size="2"><span><br>
</span></font></font></font></div><div><font face="Arial"><font size="2"><span><font color="#000000"><br></font></span></font></font></div><div><font face="Arial"><font color="#0000ff"><font size="2"><span>[[[ejs]]] Or, does changing the script to use 
  &quot;#!/bin/bash&quot; work without other 
changes?</span></font></font></font><font face="Arial"><font size="2"><span><font color="#000000"><br></font></span></font></font></div><div><font face="Arial"><font size="2"><span><font color="#000000">No. using bash gives this error:</font></span></font></font><font face="Arial"><font size="2"><span><font color="#000000"><br>
</font></span></font></font></div><div>./esbox.sh: line 17: syntax error near unexpected token `else&#39;<br>./esbox.sh: line 17: `else&#39;<br></div><div>I have to change the help() -&gt; help in order to get past the script errors.<br>
</div><div><br></div><div><span><font face="Arial" color="#0000ff" size="2">[[[ejs]]]  Could you post the error message?  Again it 
  sounds like a shell configuration issue which we should work 
  around.</font></span></div><div>sorry, I was referring to the initial esbox start-up error (blank dialog-box) not a script-error. Basically esbox starts with no arguments and I am back to square one. seems like using the &#39;-vmargs&#39; parameter is required.<span><font face="Arial" color="#0000ff" size="2"><br>
</font></span></div><div><br></div><div>Thanks.<br></div><div><br></div><div class="gmail_quote">On Tue, Nov 17, 2009 at 4:25 PM,  <span dir="ltr">&lt;<a href="mailto:Ed.Swartz@nokia.com">Ed.Swartz@nokia.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Hi,</font></span></div><div class="im">
<div dir="ltr" align="left"> </div>
<blockquote style="margin-right:0px">lrwxrwxrwx 1 root root 4 2009-10-26 
  18:41 /bin/sh -&gt; dash<br>
  <div><br></div>
  <div>After the following mods, the script ran:</div>
  <div>- use bash</div>
  <div>- help() -&gt; help</div>
  <div>- help(); -&gt; help</div></blockquote>
</div><blockquote style="margin-right:0px">
  <div><font face="Arial"><font color="#0000ff"><font size="2"><span>[[[ejs]]] This is odd... according to <a href="https://wiki.ubuntu.com/DashAsBinSh" target="_blank">https://wiki.ubuntu.com/DashAsBinSh</a> , 
  the script and use of functions should be portable to bash or dash (I also use 
  dash).  Is there some sort of environment setting which is influencing 
  the default behavior of your script?  </span></font></font></font></div>
  <div> </div>
  <div><font face="Arial"><font color="#0000ff"><font size="2"><span>[[[ejs]]] Or, does changing the script to use 
  &quot;#!/bin/bash&quot; work without other 
changes?</span></font></font></font><br></div></blockquote>
<blockquote style="margin-right:0px">
  <div><div class="im">but the error re-appeared because XULOPTIONS was &#39;&#39;<br></div><span><font face="Arial" color="#0000ff" size="2">[[[ejs]]]  Could you post the error message?  Again it 
  sounds like a shell configuration issue which we should work 
  around.</font></span></div>
  <div><br></div>
  <div><div class="im">when I use  &#39;-vmargs 
  -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/bin/xulrunner&#39; directly, which 
  uses version 1.9, it works correctly. do this mean that 1.8 is not 
  needed?<br></div><span><font face="Arial" color="#0000ff" size="2">[[[ejs]]] I&#39;m not sure :)  I&#39;ll try both again.  This 
  workaround was derived from other people&#39;s research, so maybe they were wrong 
  :) </font></span></div>
  <div><br></div>
  <div><div class="im">Shouldn&#39;t 1.18 in the help function be 1.8.1?<br></div><span><font face="Arial" color="#0000ff" size="2">[[[ejs]]] Yes, thanks. </font></span></div>
  <div><br></div>
  <div><span><font face="Arial" color="#0000ff" size="2">[[[ejs]]] -- Ed</font></span></div><div><div class="h5">
  <div><span> </span></div>
  <div><br></div>
  <div class="gmail_quote">On Tue, Nov 17, 2009 at 3:34 AM, <span dir="ltr">&lt;<a href="mailto:Ed.Swartz@nokia.com" target="_blank">Ed.Swartz@nokia.com</a>&gt;</span> 
wrote:<br>
  <blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
    <div>
    <div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Hi,</font></span></div>
    <div dir="ltr" align="left"> </div>
    <div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Hmm, 
    that script works for me with bash and dash.  What shell do you have 
    for /bin/sh?  </font></span></div>
    <div dir="ltr" align="left"> </div>
    <div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">-- 
    Ed</font></span></div><br>
    <blockquote style="margin-right:0px">
      <div lang="en-us" dir="ltr" align="left">
      <hr>
      <font face="Tahoma" size="2"><b>From:</b> ext Mustali Dalal [mailto:<a href="mailto:archebyte@gmail.com" target="_blank">archebyte@gmail.com</a>] 
      <br><b>Sent:</b> Monday, November 16, 2009 6:48 PM<br><b>To:</b> Swartz Ed 
      (Nokia-D/Austin)<br><b>Cc:</b> <a href="mailto:esbox-users@garage.maemo.org" target="_blank">esbox-users@garage.maemo.org</a><br><b>Subject:</b> Re: 
      [Esbox-users] cannot start esbox. starting esbox displays empty dialog on 
      Ubuntu Karmic<br></font><br></div>
      <div>
      <div>I got an error executing it. <br>archebyte $ ./esbox.sh 
      <br>./esbox.sh: 6: Syntax error: &quot;(&quot; unexpected<br>
      <div><br></div>
      <div>However, looking at the script, I was able to set the startup 
      parameters manually and I am now able to start esbox.</div>
      <div>./esbox -vmargs 
      -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/bin/xulrunner</div>
      <div><br></div>
      <div>Thanks!<br></div>
      <div><br></div>
      <div class="gmail_quote">On Tue, Nov 17, 2009 at 12:00 AM, <span dir="ltr">&lt;<a href="mailto:Ed.Swartz@nokia.com" target="_blank">Ed.Swartz@nokia.com</a>&gt;</span> wrote:<br>
      <blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
        <div>
        <div dir="ltr" align="left"><br> </div>
        <blockquote style="margin-right:0px">
          <div>
          <div>Thanks for the reply Ed. Did you mean 1.9 and 1.8 instead of 
          1.19/1.18? <br></div><font face="Arial"><font color="#0000ff"><font size="2"><span> </span><span>[[[ejs]]] Oh yes, sorry 
          about the version confusion. 1.8.</span></font></font></font></div>
          <div> </div>
          <div><font face="Arial"><font color="#0000ff"><font size="2"><span>
          <div><font face="Times New Roman" color="#000000" size="3">I did install 
          xulrunner and set the GDK variable. still didn&#39;t 
          work.</font><br></div>Did you find and use the esbox.sh script from 
          the latest integration release?  It should tell you which 
          xulrunner it found or if it failed.  It looks first at the 
          xulrunner on the PATH and then tries /usr/lib/xulrunner/xulrunner, 
          which I think is where it is in the package shown 
          below.</span></font></font></font></div>
          <div> </div>
          <div><span><font face="Arial" color="#0000ff" size="2">The contents of the 
          script are included below if they&#39;re missing from the 
          archive.</font></span></div>
          <div> </div>
          <div><span><font face="Arial" color="#0000ff" size="2">-- 
          Ed</font></span></div>
          <div><br><font face="Arial"><font color="#0000ff"><font size="2">#!/bin/sh</font></font></font></div>
          <div> </div>
          <div><font face="Arial"><font color="#0000ff"><font size="2"># This script 
          sets up the environment to run Eclipse in newer<br># versions of Linux 
          which are slightly incompatible with Eclipse 
          3.4.2.</font></font></font></div>
          <div> </div>
          <div><font face="Arial"><font color="#0000ff"><font size="2">function help() 
          {<br> echo &quot;Note: xulrunner 1.18.1 should be installed if Eclipse 
          crashes unexpectedly&quot;<br> echo &quot;      on 
          startup, with hover help, during wizards, etc.&quot;<br> echo &quot;See <a href="https://garage.maemo.org/tracker/index.php?func=detail&amp;aid=4689&amp;group_id=192&amp;atid=1420" target="_blank">https://garage.maemo.org/tracker/index.php?func=detail&amp;aid=4689&amp;group_id=192&amp;atid=1420</a>&quot;<br>
}</font></font></font></div>
          <div> </div>
          <div><font face="Arial"><font color="#0000ff"><font size="2"># first, 
          Eclipse depends on an old version of xulrunner.<br>XULRUNNER=`which 
          xulrunner`<br>XULOPTS=&quot;&quot;<br>if [ -z &quot;$XULRUNNER&quot; ] ; 
          then<br> help()<br>else<br> XULVERSION=`$XULRUNNER -v 
          2&gt;&amp;1 | awk &#39;{print $3}&#39; | cut -d. -f1,2`<br> if [ 
          &quot;$XULVERSION&quot; != &quot;1.8&quot; ] ; 
          then<br>  help();<br> else<br>  XULOPTS=&quot;-vmargs 
          -Dorg.eclipse.swt.browser.XULRunnerPath=$XULRUNNER&quot;<br> fi<br>fi</font></font></font></div>
          <div> </div>
          <div><font face="Arial"><font color="#0000ff"><font size="2"># This is a fix 
          for dependencies on GTK 2.16 (and older) behavior, which<br># if 
          unfixed, results in annoying dialog behavior where the mouse 
          cannot<br># properly click buttons, use tables, etc.<br>export 
          GDK_NATIVE_WINDOWS=true</font></font></font></div>
          <div> </div>
          <div><font face="Arial"><font color="#0000ff"><font size="2">./esbox 
          $XULOPTS &quot;$@&quot;<br><br><span> </span></font></font></font></div>
          <div>
          <div>
          <div><br></div>
          <div><font face="courier new,monospace"><font size="1">user@ttelmtux:~$ 
          dpkg -l xul*</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Desired=Unknown/Install/Remove/Purge/Hold</font></font><font face="courier new,monospace"><font size="1"><br>
</font></font><font face="courier new,monospace"><font size="1">| 
          Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">|/ 
          Err?=(none)/Reinst-required (Status,Err: 
          uppercase=bad)</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">||/ Name Version Description</font></font><font face="courier new,monospace"><font size="1"><br>
</font></font><font face="courier new,monospace"><font size="1">+++-======================================-======================================-============================================================================================</font></font><font face="courier new,monospace"><font size="1"><br>
</font></font><font face="courier new,monospace"><font size="1">un xulrunner &lt;none&gt; 
          (no description available)</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">rc xulrunner-1.9 
          1.9.0.14+build2+nobinonly-0ubuntu0.9.0 XUL + XPCOM application 
          runner</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">un xulrunner-1.9-gnome-support &lt;none&gt; (no description 
          available)</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">ii xulrunner-1.9.1 1.9.1.5+nobinonly-0ubuntu0.9.10.1 XUL + 
          XPCOM application runner</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">ii 
          xulrunner-1.9.1-gnome-support 1.9.1.5+nobinonly-0ubuntu0.9.10.1 
          Support for GNOME in xulrunner-1.9.1 applications</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1"><br>
</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">user@ttelmtux:~$ sudo 
          apt-get install xulrunner</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Reading package lists... 
          Done</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Building dependency tree </font></font><font face="courier new,monospace"><font size="1"><br>
</font></font><font face="courier new,monospace"><font size="1">Reading state information... 
          Done</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">The following packages were automatically installed and are no 
          longer required:</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">gcj-4.3-base libgcj9-0 libgcj-bc libswt-gtk-3.5-jni 
          libaccess-bridge-java-jni libaccess-bridge-java icedtea-6-jre-cacao 
          gcj-4.4-jre-lib libgcj10 gij-4.3 ant-optional-gcj 
          ant</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">gcj-4.4-base libequinox-osgi-java default-jre libgcj-common 
          libjaxp1.3-java openjdk-6-jre-headless tzdata-java openjdk-6-jre 
          libjline-java openjdk-6-jre-lib libgcj9-jar</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">libxerces2-java 
          gcj-4.4-jre-headless rhino default-jre-headless libswt-gtk-3.5-java 
          ca-certificates-java ant-gcj ant-optional</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Use &#39;apt-get autoremove&#39; to 
          remove them.</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">The following extra packages will be 
          installed:</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">libmozjs0d libxul-common libxul0d</font></font><font face="courier new,monospace"><font size="1"><br>
</font></font><font face="courier new,monospace"><font size="1">Suggested 
          packages:</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">xulrunner-gnome-support</font></font><font face="courier new,monospace"><font size="1"><br>
</font></font><font face="courier new,monospace"><font size="1">The following NEW packages 
          will be installed:</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">libmozjs0d libxul-common 
          libxul0d xulrunner</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">0 upgraded, 4 newly 
          installed, 0 to remove and 0 not upgraded.</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Need to get 7,565kB of 
          archives.</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">After this operation, 23.9MB of additional disk space will be 
          used.</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Do you want to continue [Y/n]? y</font></font><font face="courier new,monospace"><font size="1"><br>
</font></font><font face="courier new,monospace"><font size="1">Get:1 <a href="http://mirror.ovh.net" target="_blank">http://mirror.ovh.net</a> 
          karmic/universe libmozjs0d 1.8.1.16+nobinonly-0ubuntu1 
          [378kB]</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Get:2 <a href="http://mirror.ovh.net" target="_blank">http://mirror.ovh.net</a> karmic/universe libxul-common 
          1.8.1.16+nobinonly-0ubuntu1 [1,173kB]</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Get:3 <a href="http://mirror.ovh.net" target="_blank">http://mirror.ovh.net</a> 
          karmic/universe libxul0d 1.8.1.16+nobinonly-0ubuntu1 
          [5,728kB]</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Get:4 <a href="http://mirror.ovh.net" target="_blank">http://mirror.ovh.net</a> karmic/universe xulrunner 
          1.8.1.16+nobinonly-0ubuntu1 [286kB] </font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Fetched 7,565kB in 6s 
          (1,087kB/s) </font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Selecting previously deselected package 
          libmozjs0d.</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">(Reading database ... 275390 files and directories currently 
          installed.)</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Unpacking libmozjs0d (from 
          .../libmozjs0d_1.8.1.16+nobinonly-0ubuntu1_i386.deb) 
          ...</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Selecting previously deselected package 
          libxul-common.</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Unpacking libxul-common (from 
          .../libxul-common_1.8.1.16+nobinonly-0ubuntu1_all.deb) 
          ...</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Selecting previously deselected package 
          libxul0d.</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Unpacking libxul0d (from 
          .../libxul0d_1.8.1.16+nobinonly-0ubuntu1_i386.deb) 
          ...</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Selecting previously deselected package 
          xulrunner.</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Unpacking xulrunner (from 
          .../xulrunner_1.8.1.16+nobinonly-0ubuntu1_i386.deb) 
          ...</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Setting up libmozjs0d (1.8.1.16+nobinonly-0ubuntu1) 
          ...</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Setting up libxul-common (1.8.1.16+nobinonly-0ubuntu1) 
          ...</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Setting up libxul0d (1.8.1.16+nobinonly-0ubuntu1) 
          ...</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Setting up xulrunner (1.8.1.16+nobinonly-0ubuntu1) 
          ...</font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1"><br></font></font><font face="courier new,monospace"><font size="1">Processing triggers for libc-bin ...</font></font><font face="courier new,monospace"><font size="1"><br>
</font></font><font face="courier new,monospace"><font size="1">ldconfig deferred processing 
          now taking place</font></font><font face="courier new,monospace"><font size="1"><br></font></font></div><font face="courier new,monospace"><font size="1"><br></font></font>
          <div class="gmail_quote">On Mon, Nov 16, 2009 at 7:56 PM, <span dir="ltr">&lt;<a href="mailto:Ed.Swartz@nokia.com" target="_blank">Ed.Swartz@nokia.com</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
            <div>
            <div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Hi,</font></span></div>
            <div>
            <div dir="ltr" align="left"> </div>
            <blockquote dir="ltr" style="margin-right:0px">
              <div><br></div>
              <div>After following the instructions for installing from the 
              Product-Archives (<a href="http://esbox.garage.maemo.org/2nd_edition/installation_product.html" target="_blank">http://esbox.garage.maemo.org/2nd_edition/installation_product.html</a>) 
              on Ubuntu 9.10, I am unable to start Esbox.</div>
              <div><br></div>
              <div>Executing esbox displays the workspace confirmation window. 
              After acknowledgement, I see the Esbox splash screen displaying 
              &#39;Loading Workbench&#39;. But soon after that I get a blank window 
              (attached).</div>
              <div>I did set the GDK_NATIVE_WINDOWS variable and still no 
              go.</div></blockquote></div>
            <blockquote dir="ltr" style="margin-right:0px">
              <div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">[[ejs]] This error is different, unfortunately.   
              The startup screen for a new workspace uses a web browser 
              component that depends on Mozilla&#39;s xulrunner.  In newer 
              Linux releases, this xulrunner is 1.19 and incompatible with 
              Eclipse.  You can apt-get install xulrunner to get a 
              compatible version (1.18).  The latest integration releases 
              should have an &quot;esbox.sh&quot; script inside which will find and use 
              that version and work around this issue, as well as the 
              GDK_NATIVE_WINDOWS one.</font></span></div></blockquote>
            <blockquote dir="ltr" style="margin-right:0px">
              <div><font face="Arial"><font color="#0000ff"><font size="2"><span>Hope 
              this works!</span></font></font></font></div></blockquote>
            <blockquote dir="ltr" style="margin-right:0px">
              <div><font face="Arial"><font color="#0000ff"><font size="2">-<span>- 
              Ed </span></font></font></font><br></div>
              <div><br></div></blockquote></div></blockquote></div><br></div></div></blockquote></div></blockquote></div><br></div></div></blockquote></div></blockquote></div><br></div></div></blockquote></div>
</blockquote></div><br>