From 1503c7dd922745d31a11be7e14d682ad63248b4d Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <--get> Date: Mon, 18 Jan 2021 23:45:13 -0500 Subject: [PATCH] Change icon directory to subdirectory under ~/.local/share/icons. --- mkwebapp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mkwebapp b/mkwebapp index 980401b..1c035d3 100755 --- a/mkwebapp +++ b/mkwebapp @@ -123,7 +123,7 @@ esac ### PLACES FOR STUFF WAPP_DIR="${APPS_DIR}/${WDSUFFIX}" -WAPP_ICO="${ICONSDIR}/${WAPPNAME,,}.${WAPPICON##*.}" +WAPP_ICO="${ICONSDIR}/${WDSUFFIX}/${WAPPNAME,,}.${WAPPICON##*.}" WAPP_DTF="${APPS_DIR}/${WDSUFFIX}/${WAPPNAME,,}.desktop" ### EPIPHANY WEB APPS ARE SNOWFLAKE @@ -157,9 +157,12 @@ if [ "${WA_BRWSR}" = "firefox" ]; then fi -### MAKE WEBAPP DIRECTORY +### MAKE SURE WEBAPP DIRECTORY EXISTS printf -- ':: ' && mkdir -pv "${WAPP_DIR}" +### MAKE SURE ICONS DIRECTORY EXISTS +[ ! "${WASUFFIX}" = "ewa" ] && printf -- ':: ' && mkdir -pv "${ICONSDIR}/${WASUFFIX}" + ### SNOWFLAKE EPIPHANY REQUIRES A HIDDEN FILE IN THE WEBAPP DIRECTORY [ "${WA_BRWSR}" = "epiphany" ] && touch "${WAPP_DIR}/.app"