mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-04-29 06:04:29 +08:00
On macOS, the auto-launch library requires the .app bundle path (e.g., /Applications/CC Switch.app) rather than the binary path inside the bundle (e.g., .app/Contents/MacOS/CC Switch). Using the binary path directly causes AppleScript login items to open a terminal window. This fix extracts the .app bundle path from current_exe() on macOS, ensuring proper integration with macOS login items. Closes #375