Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix litra-oversight's compatibility with Oversight 2.1.8+ by accepting new -activeCount argument #269

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

timrogers
Copy link
Owner

litra-oversight allows you to automatically turn your Litra on/off when your webcam turns on and off in connection with OverSight. OverSight can be pointed at the litra-oversight command to enable this kind of automation.

OverSight calls any specified command with a number of arguments. v2.1.8 added a new -activeCount argument that is passed.

We don't actually need this or care about it, but since it isn't an allowlisted argument, we currently error, leaving the integration broken.

This allows litra-oversight to accept but ignore that argument, getting things working again. An alternative approach would be to allow and ignore any argument - but I'm not sure how easy that will be to do with Commander, so I'm taking this approach for now.

Fixes #259.

…ing `-activeCount` argument

`litra-oversight` allows you to automatically turn your Litra
on/off when your webcam turns on and off in connection with
[OverSight][1].

OverSight can be pointed at the `litra-oversight` command to
enable this kind of automation.

OverSight calls the specified CLI with a number of arguments.
v2.1.8 [added][2] a new `-activeCount` argument that is
passed. We don't actually need this or care about it, but
since it isn't an allowlisted argument, we error and the
integration breaks down.

This allows `litra-oversight` to accept but ignore that
argument, getting thingss working again.

Fixes #259.

[1]: https://github.com/objective-see/OverSight
[2]: objective-see/OverSight#48
@timrogers timrogers merged commit 726288a into main Nov 21, 2023
3 checks passed
Copy link

🎉 This PR is included in version 4.4.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

litra-oversight breaks with OverSight 2.1.8
1 participant