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"