[Schevo-devel] Re: [Schevo-commit] r1375 - branches/nufox/src/schevo/script

Patrick K. O'Brien pobrien at orbtech.com
Sat Nov 5 18:32:45 EST 2005


schevo-commit at lists.orbtech.com wrote:
> Author: pobrien
> Date: Sat Nov  5 18:29:05 2005
> New Revision: 1375
> 
> Modified:
>    branches/nufox/src/schevo/script/foxnav.py
>    branches/nufox/src/schevo/script/main.py
> Log:
> Baby step towards chrome support on Windows.

I also modified nufox in this extremely hackish way:

def NufoxDesktopApp(XULRootPage, firefoxArgs=None):
    """Use this to run a server with a single client on the same machine."""

    def start():
        args = ['-chrome', 'http://127.0.0.1:8090']
        if firefoxArgs:
            args.extend(firefoxArgs)
        if os.name == 'nt':
            executable = 'C:/Program Files/Mozilla Firefox/firefox.exe'
        else:
            executable = '/usr/bin/firefox'
        d = utils.getProcessOutput(executable, args, os.environ)
        d.addCallback(stop)

    def stop(r):
        print "terminated:",r
        reactor.stop()

    reactor.callLater(0, start)
    return NufoxServer('NufoxDesktopApp', 8090, XULRootPage,
                       interface="127.0.0.1")

Note that it still doesn't really work right.

-- 
Patrick K. O'Brien
Orbtech       http://www.orbtech.com
Schevo        http://www.schevo.org




More information about the Schevo-devel mailing list