fix: Fixes webapp install scripts to handle 'null' values in json specs

This commit is contained in:
2025-09-28 17:44:54 -04:00
parent c6a0056ad6
commit a05e8f41bd
2 changed files with 4 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ else
fi
# Use custom exec if provided, otherwise default behavior
if [[ -n $CUSTOM_EXEC ]]; then
if [[ -n $CUSTOM_EXEC ]] && [[ ! $CUSTOM_EXEC == "null" ]]; then
EXEC_COMMAND="$CUSTOM_EXEC"
else
EXEC_COMMAND="${SCRIPTS:-$HOME/.local/scripts}/launch-webapp $APP_URL"
@@ -143,7 +143,7 @@ StartupNotify=true
EOF
# Add mime types if provided
if [[ -n $MIME_TYPES ]]; then
if [[ -n $MIME_TYPES ]] && [[ ! $MIME_TYPES == "null" ]]; then
echo "MimeType=$MIME_TYPES" >>"$DESKTOP_FILE"
fi