Why Your Mac App Keeps Running After You Close the Window (and How I Fixed It)
Описание и применение
TrueClose автоматически завершает работу macOS‑приложений, когда закрывается последнее окно, избавляя от лишних процессов в Dock и экономя память.
Задача
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