Change variable name from EWA_PRFX to WAPP_PRE

master
BrainwreckedTech 4 years ago
parent 2e0246541d
commit 9de7ca543f

@ -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

Loading…
Cancel
Save