From 9de7ca543fc52e6b3ddb58d4304df6034b47cd64 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <--get> Date: Tue, 19 Jan 2021 03:32:32 -0500 Subject: [PATCH] Change variable name from EWA_PRFX to WAPP_PRE --- mkwebapp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mkwebapp b/mkwebapp index 3f2eede..684db8e 100755 --- a/mkwebapp +++ b/mkwebapp @@ -17,7 +17,7 @@ set -x CONF_DIR="${HOME}/.config" -EWA_PRFX="org.gnome.Epiphany.WebApp-" +WAPP_PRE="org.gnome.Epiphany.WebApp-" LOCALDIR="${HOME}/.local" SHAREDIR="${LOCALDIR}/share" @@ -129,11 +129,11 @@ WAPP_DTF="${APPS_DIR}/${WASUFFIX}/${WAPPNAME,,}.desktop" ### EPIPHANY WEB APPS ARE SNOWFLAKE if [ "${WA_BRWSR}" = "epiphany" ]; then - WAPP_DIR="${SHAREDIR}/${EWA_PRFX}${WAPPNAME,,}" + WAPP_DIR="${SHAREDIR}/${WAPP_PRE}${WAPPNAME,,}" WAPP_ICO="${WAPP_DIR}/app-icon.${WAPPICON##*.}" - WAPP_DTF="${WAPP_DIR}/${EWA_PRFX}${WAPPNAME,,}.desktop" + WAPP_DTF="${WAPP_DIR}/${WAPP_PRE}${WAPPNAME,,}.desktop" else - EWA_PRFX= + WAPP_PRE= fi ### FIREFOX IS ALSO SNOWFLAKE @@ -178,7 +178,7 @@ esac ### CREATE WMCLASS FOR THE .desktop FILE case "${WASUFFIX}" in - ewa) WAWMCLAS="${EWA_PRFX}${WAPPNAME,,}";; + ewa) WAWMCLAS="${WAPP_PRE}${WAPPNAME,,}";; pwa) WAWMCLAS="pwa-${WAPPNAME,,}";; ssb) WAWMCLAS="ssb-${WAPPNAME,,}";; esac @@ -200,9 +200,9 @@ printf '%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n' "${DTE0}" "${DTE1}" "${DTE2}" printf -- ':: chmod: ' chmod -v +x "${WAPP_DTF}" -if [ -n "${EWA_PRFX}" ]; then +if [ -n "${WAPP_PRE}" ]; then printf -- ':: ln -s: ' - ln -sv "../${EWA_PRFX}${WAPPNAME,,}/${EWA_PRFX}${WAPPNAME,,}.desktop" "${APPS_DIR}/${EWA_PRFX}${WAPPNAME,,}.desktop" + ln -sv "../${WAPP_PRE}${WAPPNAME,,}/${WAPP_PRE}${WAPPNAME,,}.desktop" "${APPS_DIR}/${WAPP_PRE}${WAPPNAME,,}.desktop" fi ### CREATE A PROXIED VERSION @@ -228,7 +228,7 @@ printf '%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n' "${DTE0}" "${DTE1}" "${DTE2}" printf -- ':: chmod: ' chmod -v +x "${WAPP_DTF}" -if [ -n "${EWA_PRFX}" ]; then +if [ -n "${WAPP_PRE}" ]; then printf -- ':: ln -s: ' - ln -sv "../${EWA_PRFX}${WAPPNAME,,}/${EWA_PRFX}${WAPPNAME,,}.proxied.desktop" "${APPS_DIR}/${EWA_PRFX}${WAPPNAME,,}.proxied.desktop" + ln -sv "../${WAPP_PRE}${WAPPNAME,,}/${WAPP_PRE}${WAPPNAME,,}.proxied.desktop" "${APPS_DIR}/${WAPP_PRE}${WAPPNAME,,}.proxied.desktop" fi