Why Your Mac App Keeps Running After You Close the Window (and How I Fixed It)
说明与用途
TrueClose 在关闭最后一个窗口时自动退出 macOS 应用,恢复类似 Windows 的行为并释放资源。
问题
On macOS, closing the last window of an app leaves the app running in the background, consuming memory until Cmd+Q is pressed.
结果
TrueClose restores Windows-like behavior on macOS by automatically quitting apps when their last window is closed, reducing background clutter and memory usage.
工作流
- Install TrueClose via Homebrew or download .pkg/.dmg
- Remove quarantine with
xattr -d com.apple.quarantine /Applications/TrueClose.app - Launch TrueClose and grant Accessibility access in System Settings
- Configure delay, blacklist/whitelist, and pause/resume options as desired
证据
If you came from Windows, you've probably noticed this: you click the red close button, the window disappears, but the app is still running.
TrueClose is a small, free, open-source menu bar app for macOS. When you close an app's last window, it quits the app after a short delay.
TrueClose uses the macOS Accessibility API to count how many windows each running app has. When an app drops to zero windows, TrueClose starts a timer. If the app still has no windows when the delay ends, TrueClose asks it to quit with NSRunningApplication.terminate()
With Homebrew: brew install --cask nhatnam7kz/tap/trueclose
- 记录日期: 2026-10-09T04:55:59.321Z