Open hbhoyar opened 2 years ago
The sleepwatcher cannot turn off the bluetooth. It works if script is run directly.
Upon adding logs, looks like blueutil is not present in sleepwatcher environment command not found: blueutil.
command not found: blueutil
You have the replace all the instance of blueutil in .sleep and .wakeup with the output of command which blueutil.
blueutil
which blueutil
Exactly!
I debugged and the $PATH variable is missing some of the brew paths.
$PATH
brew
Current $PATH passed to sleepwatcher: /usr/bin:/bin:/usr/sbin:/sbin
/usr/bin:/bin:/usr/sbin:/sbin
The sleepwatcher cannot turn off the bluetooth. It works if script is run directly.
Upon adding logs, looks like blueutil is not present in sleepwatcher environment
command not found: blueutil
.You have the replace all the instance of
blueutil
in .sleep and .wakeup with the output of commandwhich blueutil
.