Add Autostart menu: launch the app when a chosen USB capture device is attached

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mmacierzankaandClaude Bot committed 2026-11-03 13:00:15 +01:00
1 parent f7cc238b56
commit 25673f2b5a
9 files changed
+95 -8

No files matched your search

+2
View File
@@ -6,6 +6,8 @@ APP="${0:A:h:h:h}"
read -q "?Delete $APP and all its data? [y/N] " || { echo; echo Cancelled; exit 0; }
echo
pkill -x SecondDisplay 2>/dev/null
launchctl bootout "gui/$(id -u)/$ID.autostart" 2>/dev/null # launch-on-connect agent
rm -f ~/Library/LaunchAgents/$ID.autostart.plist
defaults delete "$ID" 2>/dev/null
tccutil reset All "$ID" >/dev/null 2>&1 # camera / microphone permissions
L=~/Library