From 8cb74cf5f95ce802271f1f43d1e18efb5d490e11 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <--get> Date: Tue, 19 Jan 2021 03:38:03 -0500 Subject: [PATCH] Added step to check for default-pwa and launch Chromium if not. --- mkwebapp | 8 ++++++++ 1 file changed, 8 insertions(+) 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}"