feat: removes old link-config script, rename a few things in dev-env script, more cleanup.

This commit is contained in:
2025-09-28 12:38:23 -04:00
parent 5aceabd878
commit 1a729e7281
5 changed files with 38 additions and 108 deletions

View File

@@ -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