<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">Thanks! I wasn't able to make the script run,
      but there was a clue in there to one of my errors and I did manage
      to coax xulrunner to start.</font> Looks very nice.<br>
    <br>
    Cheers,<br>
    Bob<br>
    <br>
    <div class="moz-cite-prefix">On 10/15/12 1:45 PM, Pavel Krivanek
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHN2Fze2OnR1jyP+P4_du1N2iLgZDQDvq4AMyH8BQSx+mTHzAw@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi, I use this scripts:

===========
without.sh
===========
#!/bin/bash

which xulrunner &gt;/dev/null 2&gt;&amp;1 || {
  [ $(uname) == 'Darwin' ] &amp;&amp;
PATH=/Library/Frameworks/XUL.framework/Versions/Current/:${PATH}
}
xulrunner -app $(cd $(dirname $0); pwd)/application.ini $@

===========
withconsole.sh
===========
#!/bin/bash

$(dirname $0)/without.sh -jsconsole


-- Pavel

On Mon, Oct 15, 2012 at 6:56 PM, Bob Arning <a class="moz-txt-link-rfc2396E" href="mailto:arning315@comcast.net">&lt;arning315@comcast.net&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Pavel,

Looks interesting, but lacking enough unix geekdom, I'm a bit stymied by

run XULRunner with -jsconsole argument. It shows the JavaScript console

I tried stuff like this:

robert-arnings-computer:PhobosDemo.app bob$
Contents/Frameworks/XUL.framework/Versions/16.0/xulrunner --app
/Contents/Resources/application.ini
Error: couldn't parse application.ini.

and can't seem to find the winning combination. Can you help?

Thanks,
Bob


On 10/13/12 4:29 PM, Pavel Krivanek wrote:

Hi,

I created a port of Phobos (framework for creation of native user
interface using XULRunner) to Squeak too.

<a class="moz-txt-link-freetext" href="http://code.google.com/p/phobos-framework/">http://code.google.com/p/phobos-framework/</a>

It uses WebClient instead of Zinc. To load Phobos evaluate:

(Installer repository: '<a class="moz-txt-link-freetext" href="http://www.squeaksource.com/WebClient">http://www.squeaksource.com/WebClient</a>')
  addPackage: 'WebClient-Core';
  install.

(Installer repository: '<a class="moz-txt-link-freetext" href="http://www.squeaksource.com/Seaside30">http://www.squeaksource.com/Seaside30</a>')
  addPackage: 'Grease-Core';
  addPackage: 'Grease-Pharo-Core';
  addPackage: 'Seaside-Pharo-Continuation';
  install.

(Installer repository: '<a class="moz-txt-link-freetext" href="http://www.squeaksource.com/SCouchDB">http://www.squeaksource.com/SCouchDB</a>')
  addPackage: 'JSON';
  install.

(Installer repository:
'<a class="moz-txt-link-freetext" href="http://smalltalkhub.com/mc/PavelKrivanek/Phobos/main">http://smalltalkhub.com/mc/PavelKrivanek/Phobos/main</a>')
  addPackage: 'Phobos-Core';
  addPackage: 'Phobos-XUL';
  addPackage: 'Phobos-HTML';
  addPackage: 'Phobos-Demo';
  addPackage: 'Phobos-WebClient';
  install.

To start the server evaluate:

app := PhobosDemo new.
app startOnWebClient.

ATTENTION: You will need to modify start.st script in the bundle.

There is one main ugly difference from Pharo, If an error on Smalltalk
side is raised, no debugger is opened. You will get the information
about an error only on the JavaScript side in JSConsole:

"
Error: The connection to <a class="moz-txt-link-freetext" href="ws://localhost:46528/newSession">ws://localhost:46528/newSession</a> has
terminated unexpectedly. Some data may have been transferred.
Source File: <a class="moz-txt-link-freetext" href="chrome://myapp/content/main.js">chrome://myapp/content/main.js</a>
Line: 132
"

Cheers,
-- Pavel






</pre>
      </blockquote>
      <pre wrap="">

</pre>
    </blockquote>
    <br>
  </body>
</html>