andreasgal/gaia — pull request #861 by davidflanagan (2012-03-20 20:08:24+00:00)
Title: use mozApps API for homescreen: phase 1

This is a preliminary pull request for review. It may not be ready to pull yet.

This modifies webapi.js to take out the mozApps stub API.

It modifies app_manager to use the new, real API

It renames apps/installed_apps.json to apps/webapps.json, and modifies that file to match what the new API needs.

The new API requires app manifests and a webapps.json file to be in the profile directory,
so it modifies the Makefile to copy all the manifests plus apps/webapps.json into profile/webapps.

In order to make this work on the desktop, you must create a symbolic link from your profile directory to the gaia/profile/webapps directory. On MacOS, that means something like this:

cd ~/Library/Application\ Support/B2G/Profiles/*.default/
ln -s $GAIA/profile/webapps .

After that, it should work on the desktop.

I have not yet tested it on the phone itself. I've got to rebuild and reflash my phone before testing, and I wanted to get this here so others could look at it. Also, I still have to update the 'make install-gaia' target in the makefile of the B2G repo as well.