Skip to content

feat: add Auto Quit feature for .app files#385

Open
pazhanir wants to merge 3 commits into
SuperCmdLabs:mainfrom
pazhanir:feat/auto-quit
Open

feat: add Auto Quit feature for .app files#385
pazhanir wants to merge 3 commits into
SuperCmdLabs:mainfrom
pazhanir:feat/auto-quit

Conversation

@pazhanir
Copy link
Copy Markdown
Contributor

Summary

  • Add Auto Quit feature that automatically quits apps after configurable inactivity period
  • Per-app enable/disable via launcher actions (select .app → Actions → Enable Auto Quit)
  • Global default timeout configurable in Settings → General (segmented control: 1m–30m)
  • Pauses during audio recording or music playback (Spotify/Apple Music)
  • Finder and system apps are always protected

Note

I'm working on updating the Settings page to match macOS Settings design.

Test plan

  • Search for an app, open Actions → "Enable Auto Quit"
  • Verify app quits after timeout when not frontmost
  • Verify "Disable Auto Quit" removes the app from auto-quit
  • Verify Settings → General shows Auto Quit timeout selector
  • Verify Finder/SuperCmd cannot be auto-quit
  • Verify music apps are protected while playing

pazhanir added 2 commits May 13, 2026 18:35
Automatically quit apps after a configurable period of inactivity.
Users enable auto-quit per app via launcher actions. Pauses during
audio recording or music playback. Finder and system apps are protected.
- Validate bundle IDs with strict regex before AppleScript interpolation
- Validate IPC inputs: appPath restricted to /Applications, timeout clamped 30-3600s
- Prevent PlistBuddy path traversal with resolved path checks
- Fix unbounded memory growth in lastFrontmostAt map with periodic pruning
- Fix async race condition in polling with guard flag
- Use synthetic prefix for fallback bundle IDs to avoid collisions
@shobhit99
Copy link
Copy Markdown
Contributor

@pazhanir
can we put the enable auto quit command before "Disable Command" for consistency.

image

- Refresh settings on window focus in ExtensionsTab so disable state
  is accurate after toggling from the launcher
- Broadcast commands-updated after toggle-command-enabled so launcher
  refreshes immediately when toggling from settings
- Add separator before auto-quit action in action menu
- Rename "Disable Command" to "Disable Application" for app commands
- Add disableApplication i18n string to all locale files
@pazhanir
Copy link
Copy Markdown
Contributor Author

Add a seperator , and updated the position
Also if the selection is an application instead if Disable Command, it should show Disable Application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants