nullpo-head / WSL-Hello-sudo

Let's sudo by face recognition of Windows Hello on Windows Subsystem for Linux (WSL). It runs on both WSL 1 and WSL 2. This is a PAM module for Linux on WSL.
MIT License
1.22k stars 46 forks source link

Debug version for Windows 11 support #29

Closed jonaskuske closed 2 years ago

jonaskuske commented 2 years ago

Hey, maybe you @nullpo-head (or anyone with Windows 11) can give this version a spin and see

? :)

nullpo-head commented 2 years ago

Hi, thanks for you quick experiment! SetForeGroundWindow just works. I think it's been working fine on Windows 11 as well from the first time. I just misunderstood the expected behavior; I had t the pushy behavior in my mind. Thanks so much!

[wsl-hello] Searching for window...
[wsl-hello] Still searching...
[wsl-hello] Window found, hWnd: 3473522
[wsl-hello] Attempting to focus using SetForegroundWindow...
[wsl-hello] SetForegroundWindow successful.