From f592bca96812131c794d3f2253bdfc3fad8beb8d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 17 Sep 2025 10:12:15 +0200 Subject: [PATCH] Fix download with proper path --- bin/omarchy-webapp-install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-webapp-install b/bin/omarchy-webapp-install index 83d08c4..e954e84 100755 --- a/bin/omarchy-webapp-install +++ b/bin/omarchy-webapp-install @@ -24,7 +24,9 @@ if [[ -z "$APP_NAME" || -z "$APP_URL" || -z "$ICON_REF" ]]; then fi # Refer to local icon or fetch remotely from URL +ICON_DIR="$HOME/.local/share/applications/icons" if [[ $ICON_REF =~ ^https?:// ]]; then + ICON_PATH="$ICON_DIR/$APP_NAME.png" if curl -sL -o "$ICON_PATH" "$ICON_REF"; then ICON_PATH="$ICON_DIR/$APP_NAME.png" else @@ -32,7 +34,7 @@ if [[ $ICON_REF =~ ^https?:// ]]; then exit 1 fi else - ICON_PATH="$HOME/.local/share/applications/icons/$ICON_REF" + ICON_PATH="$ICON_DIR/$ICON_REF" fi # Use custom exec if provided, otherwise default behavior