-
-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
I have a LaunchAgent that attempts to look for meet.google.com in my browser tabs so that I can turn on a red "in-meeting" light.
$ cat $HOME/Library/LaunchAgents/com.lexicalunit.zoomwatcher.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.lexicalunit.zoomwatcher</string>
<key>UserName</key>
<string>my_user_name</string>
<key>ProgramArguments</key>
<array>
<string>/Users/my_user_name/bin/zoomwatcher</string>
</array>
<key>Nice</key>
<integer>1</integer>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/zoomwatcher.err</string>
<key>StandardOutPath</key>
<string>/tmp/zoomwatcher.out</string>
</dict>
</plist>
Within my zoomwatcher script I do:
#!/bin/bash
export PATH="/usr/local/bin:$PATH"
echo "########"
whoami
brave-cli version
brave-cli list links
echo "########"
# ... go on to either turn on or turn off the red light ...And if I watch /tmp/zoomwatcher.out I see the "########" output, I see "my_user_name" as output by the whoami command, and I see "1.7.0" output as the version. But that's it. No links are listed. There are also no errors in /tmp/zoomwatcher.err. The command seems to be working... it's just not finding any tabs/links.
However If I just run brave-cli list links in a terminal window, it works:
$ brave-cli list links
[331:352] https://github.com/prasmussen/chrome-cli/issues/new
[331:355] https://meet.google.com/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels