mirror of
https://github.com/mmacierzanka/second-display.git
synced 2026-11-06 12:41:45 +01:00
Fix autostart relaunching every 10s: acknowledge launchd USB events, run the app directly
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
25673f2b5a
commit
659815b2d8
4 files changed
+11
-2
No files matched your search
@@ -9,7 +9,7 @@ A native macOS app that shows video from a capture device (camera / capture card
|
||||
- Optional start in full screen. On by default, choice is remembered.
|
||||
- Localization: English and Polish (`Resources/{en,pl}.lproj`), following the system language.
|
||||
- Extras: per-device format (resolution/FPS), scaling modes (fit/fill/stretch), always on top, mute (⇧⌘M), Window menu (system tiling, full screen ⌃⌘F), automatic resume when a device is unplugged/replugged.
|
||||
- Autostart menu: launch the app when a chosen USB device is attached (`Sources/Autostart.swift`, per-user LaunchAgent with an IOKit match on USB vendor/product ID parsed from `AVCaptureDevice.modelID`). `uninstall.sh` must remove the agent.
|
||||
- Autostart menu: launch the app when a chosen USB device is attached (`Sources/Autostart.swift`, per-user LaunchAgent with an IOKit match on USB vendor/product ID parsed from `AVCaptureDevice.modelID`). `uninstall.sh` must remove the agent. The agent runs the app executable itself, and `main.swift` must keep acknowledging the `com.apple.iokit.matching` event stream — otherwise launchd relaunches the job every 10 s while the device is attached.
|
||||
- Out of scope (for now): launch at login, recording, screenshots, volume slider.
|
||||
|
||||
## Structure
|
||||
|
||||
Reference in new issue
Block a user