diff --git a/mkwebapp b/mkwebapp index e0de5a3..665c740 100755 --- a/mkwebapp +++ b/mkwebapp @@ -157,6 +157,14 @@ elif [ "${WASUFFIX}" = "ssb" ]; then fi +### MAKE SURE pwa-default PROFILE EXISTS, COPY IT TO NEW PROFILE. +if [ "${WASUFFIX}" = "pwa" ]; then + if [ ! -e "${WAPP_DPF}" ]; then + ${BRWSRBIN} --user-data-dir="${WAPP_DPF}" --no-first-run --no-default-browser-check + fi + cp -a "${WAPP_DPF}" "${WAPP_PRF}" +fi + ### MAKE SURE WEBAPP DIRECTORY EXISTS printf -- ':: ' && mkdir -pv "${WAPP_DIR}"