On 2013/04/14 04:02, tofumatt wrote:
That is indeed what I've settled on, but I find it a bit clunky. After all, my 
app isn't really part of gaia. I know the simulator add-on can install apps to 
the simulator while it's running (I believe using xpcscript or whatever it is), 
but I couldn't manage to nail down what code in there was using it.
It uses the remote debugging protocol, so most of the code is in Firefox and the Simulator (which contains the webapps "actor" that responds to a request to install an app), although there is some glue code in the addon.

So it's not a goal to add some kind of "add this app" command so one can add 
something to a built profile? Seems like it would be useful for testing. Just curious!
We don't have any plans to do this for the Simulator, but it does seem like it'd be useful. And it'd be pretty easy to add to the Developer Toolbar command line, which already has a few Simulator-related commands <https://github.com/mozilla/r2d2b2g/blob/master/addon/lib/main.js#L152-L184>. Then the flow for (re)installing an app would be something like:

    Shift-F2
    firefoxos install [name]

Where [name] is any case-insensitive substring of the app name. And Shift-F2 is only needed if the toolbar isn't already focused. While "firefox install [name]" can be retrieved from the command history with the up arrow.

Would that satisfy your use case, or would the command need to be available in a terminal?

-myk

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to