|
|
@ -140,16 +140,16 @@ fi
|
|
|
|
if [ "${WA_BRWSR}" = "firefox" ]; then
|
|
|
|
if [ "${WA_BRWSR}" = "firefox" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
### CREATE DIRECTORY FOR FIREFOX CACHE
|
|
|
|
### CREATE DIRECTORY FOR FIREFOX CACHE
|
|
|
|
printf -- ':: ' && mkdir -pv "/run/user/${UID}/${WAPPNAME,,}-ssb"
|
|
|
|
printf -- ':: ' && mkdir -pv "/run/user/${UID}/ssb-${WAPPNAME,,}"
|
|
|
|
|
|
|
|
|
|
|
|
### CREATE A NEW PROFILE FOR THIS WEB APP
|
|
|
|
### CREATE A NEW PROFILE FOR THIS WEB APP
|
|
|
|
echo /usr/bin/firefox -CreateProfile "${WAPPNAME,,}-ssb" -no-remote
|
|
|
|
echo /usr/bin/firefox -CreateProfile "ssb-${WAPPNAME,,}" -no-remote
|
|
|
|
|
|
|
|
|
|
|
|
### FIND THE DIRECTORY FIREFOX CREATED
|
|
|
|
### FIND THE DIRECTORY FIREFOX CREATED
|
|
|
|
FFPFDIR="$(find "${HOME}/.mozilla/firefox" -type d -name '*'."${WAPPNAME,,}-ssb")"
|
|
|
|
FFPFDIR="$(find "${HOME}/.mozilla/firefox" -type d -name '*'."ssb-${WAPPNAME,,}")"
|
|
|
|
|
|
|
|
|
|
|
|
### INJECT PREFERENCES
|
|
|
|
### INJECT PREFERENCES
|
|
|
|
USRPREF1='user_pref("browser.cache.disk.parent_directory", "/run/user/'"${UID}"'/'"${WAPPNAME,,}"'-ssb");'
|
|
|
|
USRPREF1='user_pref("browser.cache.disk.parent_directory", "/run/user/'"${UID}"'/ssb-'"${WAPPNAME,,}"');'
|
|
|
|
USRPREF2='user_pref("browser.ssb.enabled", true);'
|
|
|
|
USRPREF2='user_pref("browser.ssb.enabled", true);'
|
|
|
|
USRPREF3='user_pref("extensions.pocket.enabled", false);'
|
|
|
|
USRPREF3='user_pref("extensions.pocket.enabled", false);'
|
|
|
|
USRPREF4='user_pref("privacy.donottrackheader.enabled", true);'
|
|
|
|
USRPREF4='user_pref("privacy.donottrackheader.enabled", true);'
|
|
|
@ -172,15 +172,15 @@ curl -s "${WAPPICON}" -o "${WAPP_ICO}" -w ':: curl: wrote "%{url_effective}" to
|
|
|
|
### CREATE COMMAND LINE FOR THE .desktop FILE
|
|
|
|
### CREATE COMMAND LINE FOR THE .desktop FILE
|
|
|
|
case "${WASUFFIX}" in
|
|
|
|
case "${WASUFFIX}" in
|
|
|
|
ewa) WAPP_CMD="${BRWSRBIN} --application-mode --profile='${WAPP_DIR}' ${WAPPADDR}";;
|
|
|
|
ewa) WAPP_CMD="${BRWSRBIN} --application-mode --profile='${WAPP_DIR}' ${WAPPADDR}";;
|
|
|
|
pwa) WAPP_CMD="${BRWSRBIN} --user-data-dir='${CONF_DIR}/${WA_BRWSR}/${WAPPNAME,,}-pwa' --no-first-run --no-default-browser-check --app='${WAPPADDR}'";;
|
|
|
|
pwa) WAPP_CMD="${BRWSRBIN} --user-data-dir='${CONF_DIR}/${WA_BRWSR}/pwa-${WAPPNAME,,}' --class pwa-${WAPPNAME,,} --no-first-run --no-default-browser-check --app='${WAPPADDR}'";;
|
|
|
|
ssb) WAPP_CMD="${BRWSRBIN} -P ${WAPPNAME,,}-ssb --class ${WAPPNAME,,}-ssb --no-remote --ssb ${WAPPADDR}";;
|
|
|
|
ssb) WAPP_CMD="${BRWSRBIN} -P ssb-${WAPPNAME,,} --class ssb-${WAPPNAME,,} --no-remote --ssb ${WAPPADDR}";;
|
|
|
|
esac
|
|
|
|
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="${EWA_PRFX}${WAPPNAME,,}";;
|
|
|
|
pwa) WAWMCLAS="${WAPPNAME,,}-pwa";;
|
|
|
|
pwa) WAWMCLAS="pwa-${WAPPNAME,,}";;
|
|
|
|
ssb) WAWMCLAS="${WAPPNAME,,}-ssb";;
|
|
|
|
ssb) WAWMCLAS="ssb-${WAPPNAME,,}";;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
### CREATE A DESKTOP ENTRY FOR THE WEB APP
|
|
|
|
### CREATE A DESKTOP ENTRY FOR THE WEB APP
|
|
|
@ -209,7 +209,7 @@ fi
|
|
|
|
WAPP_DTF="${WAPP_DTF/.desktop/.proxied.desktop}"
|
|
|
|
WAPP_DTF="${WAPP_DTF/.desktop/.proxied.desktop}"
|
|
|
|
[ "${WASUFFIX}" = "pwa" ] && PRX_MTHD="Local Proxy" && WAPP_CMD="${WAPP_CMD} --proxy-server=socks://127.0.0.1:8080"
|
|
|
|
[ "${WASUFFIX}" = "pwa" ] && PRX_MTHD="Local Proxy" && WAPP_CMD="${WAPP_CMD} --proxy-server=socks://127.0.0.1:8080"
|
|
|
|
[ ! "${WASUFFIX}" = "pwa" ] && PRX_MTHD="Proxychains" && WAPP_CMD="proxychains ${WAPP_CMD}"
|
|
|
|
[ ! "${WASUFFIX}" = "pwa" ] && PRX_MTHD="Proxychains" && WAPP_CMD="proxychains ${WAPP_CMD}"
|
|
|
|
[ "${WASUFFIX}" = "ssb" ] && WAPP_CMD="${WAPP_CMD/--class ${WAPPNAME,,}-ssb/--class ${WAPPNAME,,}.proxy-ssb} "
|
|
|
|
[ ! "${WASUFFIX}" = "ewa" ] && WAPP_CMD="${WAPP_CMD/--class ${WASUFFIX}-${WAPPNAME,,}/--class ${WASUFFIX}-${WAPPNAME,,}.proxy}"
|
|
|
|
WAWMCLAS="${WAWMCLAS/${WAPPNAME,,}/${WAPPNAME,,}.proxy}"
|
|
|
|
WAWMCLAS="${WAWMCLAS/${WAPPNAME,,}/${WAPPNAME,,}.proxy}"
|
|
|
|
|
|
|
|
|
|
|
|
DTE0="[Desktop Entry]"
|
|
|
|
DTE0="[Desktop Entry]"
|
|
|
|