howdy icon indicating copy to clipboard operation
howdy copied to clipboard

Hardware kill switch causes error

Open LandryNorris opened this issue 3 years ago • 1 comments

My laptop has a hardware kill switch for the camera. I often use this when I am wearing a mask or otherwise not easily visible to the camera and it's easier to type in a password. I get the following error in the console, then it asks for my password. This causes issues with some applications that check for errors in the login process. It would be ideal if Howdy could recognize this and silently fail, perhaps returning PAM_AUTHINFO_UNAVAIL, either by default or as an option (to disambiguate this scenario from a wrong device in the config, for example).

Camera path is not configured correctly, please edit the 'device_path' config value. Exception ignored in: <function VideoCapture.del at 0x7f9ee8400d30> Traceback (most recent call last): File "/usr/lib/security/howdy/recorders/video_capture.py", line 55, in del self.internal.release() AttributeError: 'VideoCapture' object has no attribute 'internal' Unknown error: 1

Linux distribution (if applicable): Arch Linux

Howdy version (sudo howdy version): Howdy 2.6.1

LandryNorris avatar Nov 18 '21 01:11 LandryNorris

A fix for this is on branch but clearly not for you locally yet. Maybe you could manually add those changes to your /recorders/video_capture.py file for now? (specifically the try/catch)

boltgolt avatar Nov 19 '21 09:11 boltgolt