If it is not clear, the code in this file is generating the config.js files for the camera and gallery apps using the defaults above, as overridden by values in $GAIA_DISTRIBUTION_DIR/camera.json, if any such file exists.