jessedoyle / isight-cli

iSight CLI Disabler
MIT License
14 stars 2 forks source link

Support Mojave / Ventura #5

Open Neved4 opened 1 year ago

Neved4 commented 1 year ago

Hey @jessedoyle, first off thanks for your work! 🚀

As of 2023, the installer.sh file fails with:

$ curl -sSL https://raw.github.com/jessedoyle/isight-cli/master/installer.sh | bash
Downloading script from: https://raw.githubusercontent.com/jessedoyle/isight-cli/master/isight...
main: line 31: /usr/local/bin/isight: Permission denied
chmod: /usr/local/bin/isight: No such file or directory
Installation complete!
Please execute the command: 'isight help' in your terminal.

A fix would be to have the installer use sudo, I changed the installation path to work around it: https://github.com/jessedoyle/isight-cli/blob/dfbc39ddcd69d3e31843dbaa64bf59d9f67206a2/installer.sh#L27

To the following: INSTALL_PATH="$HOME/$APP_NAME".

Now we have the script correctly installed under our $HOME dir, but it still fails to work:

$ sudo isight off
iSight Status: Enabled
Disabling iSight...
chmod: Unable to change file mode on /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/Resources/VDC.plugin/Contents/MacOS/VDC: Operation not permitted
jessedoyle commented 1 year ago

Hey @mnrvwl - thanks for pointing out this issue!

Looks like it's been a while since running isight-cli locally and things have broken with recent OS versions.

Just wanted to say that while I plan to look into this over the next few weeks, it's currently pretty low priority. PRs are definitely welcome if you're interested in helping out!

Thanks again!

Neved4 commented 12 months ago

Hey @jessedoyle how goes, any news?