mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
feat: removes old link-config script, rename a few things in dev-env script, more cleanup.
This commit is contained in:
5
env/.local/scripts/install-webapp
vendored
5
env/.local/scripts/install-webapp
vendored
@@ -100,6 +100,9 @@ MIME_TYPES=$mime_types[-1]
|
||||
|
||||
# Refer to local icon or fetch remotely from URL
|
||||
ICON_DIR="$HOME/.local/share/applications/icons"
|
||||
# Ensure the icon directory exists (useful if it's the first run.)
|
||||
[ ! -d $ICON_DIR ] && mkdir -p $ICON_DIR
|
||||
|
||||
if [[ $ICON_REF == https://* ]]; then
|
||||
ICON_PATH="$ICON_DIR/$APP_NAME.png"
|
||||
if curl -sL -o "$ICON_PATH" "$ICON_REF"; then
|
||||
@@ -121,7 +124,7 @@ fi
|
||||
if [[ -n $CUSTOM_EXEC ]]; then
|
||||
EXEC_COMMAND="$CUSTOM_EXEC"
|
||||
else
|
||||
EXEC_COMMAND="$HOME/.local/scripts/launch-webapp $APP_URL"
|
||||
EXEC_COMMAND="${SCRIPTS:-$HOME/.local/scripts}/launch-webapp $APP_URL"
|
||||
fi
|
||||
|
||||
# Create application .desktop file
|
||||
|
||||
Reference in New Issue
Block a user