[WIP] Nodewebkit

#910 

Tested on Ubuntu 14.04 only. 
Code for Mac included.

1. Websockets will not connect from nodewebkit. Stuck at connecting.
2. Nodewebkit install needs a secure source
/ *@@ -335,8 +336,14 @@  */ is it coordinates ?


:.  Andre Amorim      .:

Key-ID:

A70B444E

Fingerprint:

FAAD3B6556A8877B938EAB2FC05E2CB0A70B444E

On 10 November 2014 14:17, Ariadni-Karolina Alexiou <
notifications@github.com> wrote:

> In node/openbazaar_daemon.py:
>
> > @@ -335,8 +336,14 @@ def log_openbazaar_start(log, ob_ctx):
> >
> >  def attempt_browser_open(ob_ctx):
> >      if not ob_ctx.disable_open_browser:
> > -        open_default_webbrowser(
> > -            'http://%s:%s' % (ob_ctx.http_ip, ob_ctx.http_port))
> > +        with open('html/dynamic_port.js', 'w') as fout:
> > +            fout.write('var wsip="%s";var wsport="%s";' % (ob_ctx.http_ip, ob_ctx.http_port))
> > +
> > +        nodeurl = "node-webkit/nw"
> > +
> > +        if is_mac():
> > +            nodeurl = "node-webkit/node-webkit.app/Contents/MacOS/node-webkit"
> > +        subprocess.Popen(nodeurl + " html", shell=True)
>
> Can use os.path.join(nodeurl,"html") to not have to worry about slashes
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/OpenBazaar/OpenBazaar/pull/936/files#r20083506>.
>