mirror of
https://github.com/mmacierzanka/second-display.git
synced 2026-11-06 12:41:45 +01:00
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:
1 parent
f7cc238b56
commit
25673f2b5a
9 files changed
+95
-8
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user