diff --git a/tools/create-macos-app.sh b/tools/create-macos-app.sh index ddb77a20..56fb85b0 100755 --- a/tools/create-macos-app.sh +++ b/tools/create-macos-app.sh @@ -31,7 +31,20 @@ WRAPPER="${MACOS_DIR}/solaar-wrapper" cat > "${WRAPPER}" </dev/null 2>&1 & + exit 0 +fi + +# Second invocation - now detached, exec solaar normally +exec "${SOLAAR_RESOLVED_PATH}" "\$@" EOF chmod +x "${WRAPPER}" @@ -78,6 +91,8 @@ cat <11.0 NSInputMonitoringUsageDescription Solaar needs to access input devices to configure and monitor your Logitech keyboards, mice, and other peripherals. + LSUIElement + EOF if [[ ${HAVE_ICON} -eq 1 ]]; then cat <<'EOF'