Skip to content

Keep HotkeyLauncher as menu-bar accessory - #7

Open
chihchanglin wants to merge 1 commit into
zjy4fun:mainfrom
chihchanglin:cursor/keep-accessory-activation-policy
Open

chihchanglin wants to merge 1 commit into
zjy4fun:mainfrom
chihchanglin:cursor/keep-accessory-activation-policy

Conversation

@chihchanglin

Copy link
Copy Markdown

Summary

  • Keep NSApplication activation policy at .accessory instead of promoting to .regular at launch or when showing windows.
  • Ensure local Release Info.plist generation includes LSUIElement=true in script/build_and_run.sh.
  • Preserve menu bar, settings window, Launch at Login, and global hotkey behavior while removing Dock / Command+Tab presence.

Note: A matching LSUIElement=true addition for .github/workflows/release.yml is recommended for CI Release builds; runtime .accessory policy already fixes Dock / App Switcher behavior even without that plist key.

Test plan

  • Build Release and replace /Applications/HotkeyLauncher.app
  • lsappinfo info -app "Hotkey Launcher" shows type="UIElement" (not Foreground)
  • No Dock icon and no Command+Tab entry
  • Menu bar icon works; Open Hotkey Launcher / Settings still usable
  • Ctrl+Option+S launches/switches Sublime Text from Finder, Cursor, Safari
  • Launch at Login still starts the app in the background

Made with Cursor

Stop overriding LSUIElement with .regular so the app stays out of Dock and Command+Tab while settings and global hotkeys still work.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant