|
|
@ -17,7 +17,7 @@
|
|
|
|
set -x
|
|
|
|
set -x
|
|
|
|
|
|
|
|
|
|
|
|
CONF_DIR="${HOME}/.config"
|
|
|
|
CONF_DIR="${HOME}/.config"
|
|
|
|
EWA_PRFX="org.gnome.Epiphany.WebApp-"
|
|
|
|
WAPP_PRE="org.gnome.Epiphany.WebApp-"
|
|
|
|
LOCALDIR="${HOME}/.local"
|
|
|
|
LOCALDIR="${HOME}/.local"
|
|
|
|
SHAREDIR="${LOCALDIR}/share"
|
|
|
|
SHAREDIR="${LOCALDIR}/share"
|
|
|
|
|
|
|
|
|
|
|
@ -129,11 +129,11 @@ WAPP_DTF="${APPS_DIR}/${WASUFFIX}/${WAPPNAME,,}.desktop"
|
|
|
|
### EPIPHANY WEB APPS ARE SNOWFLAKE
|
|
|
|
### EPIPHANY WEB APPS ARE SNOWFLAKE
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${WA_BRWSR}" = "epiphany" ]; then
|
|
|
|
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_ICO="${WAPP_DIR}/app-icon.${WAPPICON##*.}"
|
|
|
|
WAPP_DTF="${WAPP_DIR}/${EWA_PRFX}${WAPPNAME,,}.desktop"
|
|
|
|
WAPP_DTF="${WAPP_DIR}/${WAPP_PRE}${WAPPNAME,,}.desktop"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
EWA_PRFX=
|
|
|
|
WAPP_PRE=
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
### FIREFOX IS ALSO SNOWFLAKE
|
|
|
|
### FIREFOX IS ALSO SNOWFLAKE
|
|
|
@ -178,7 +178,7 @@ esac
|
|
|
|
|
|
|
|
|
|
|
|
### CREATE WMCLASS FOR THE .desktop FILE
|
|
|
|
### CREATE WMCLASS FOR THE .desktop FILE
|
|
|
|
case "${WASUFFIX}" in
|
|
|
|
case "${WASUFFIX}" in
|
|
|
|
ewa) WAWMCLAS="${EWA_PRFX}${WAPPNAME,,}";;
|
|
|
|
ewa) WAWMCLAS="${WAPP_PRE}${WAPPNAME,,}";;
|
|
|
|
pwa) WAWMCLAS="pwa-${WAPPNAME,,}";;
|
|
|
|
pwa) WAWMCLAS="pwa-${WAPPNAME,,}";;
|
|
|
|
ssb) WAWMCLAS="ssb-${WAPPNAME,,}";;
|
|
|
|
ssb) WAWMCLAS="ssb-${WAPPNAME,,}";;
|
|
|
|
esac
|
|
|
|
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: '
|
|
|
|
printf -- ':: chmod: '
|
|
|
|
chmod -v +x "${WAPP_DTF}"
|
|
|
|
chmod -v +x "${WAPP_DTF}"
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "${EWA_PRFX}" ]; then
|
|
|
|
if [ -n "${WAPP_PRE}" ]; then
|
|
|
|
printf -- ':: ln -s: '
|
|
|
|
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
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
### CREATE A PROXIED VERSION
|
|
|
|
### 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: '
|
|
|
|
printf -- ':: chmod: '
|
|
|
|
chmod -v +x "${WAPP_DTF}"
|
|
|
|
chmod -v +x "${WAPP_DTF}"
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "${EWA_PRFX}" ]; then
|
|
|
|
if [ -n "${WAPP_PRE}" ]; then
|
|
|
|
printf -- ':: ln -s: '
|
|
|
|
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
|
|
|
|
fi
|
|
|
|