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

Refactor device detection to work with any OS #255

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Refactor device detection to work with any OS #255

merged 2 commits into from
Aug 27, 2024

Conversation

daringer
Copy link
Collaborator

@daringer daringer commented Jun 17, 2024

This refactors the triggering/hooking part of the new-device-detection to use some OS agnostic mechanism.
usb-monitor is the way to go - please provide test reports for any OS with a procedure essentially like that:

  • start with connected nk3
  • 1x nk3 should be visible
  • disconnect the nk3 - nk3 should vanish
  • connect the nk3 - nk3 should come up in <2secs

fixes #252

@daringer daringer changed the title Refactor device detection to work with all OS Refactor device detection to work with any OS Jun 17, 2024
@daringer daringer added this to the v2.3.1 milestone Jun 18, 2024
Copy link
Contributor

@jj-so jj-so left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works on Windows. password safe works
-> update function not fully tested

@daringer daringer modified the milestones: v2.3.1, v2.3.2 Jul 16, 2024
@mmerklinger
Copy link
Collaborator

Tested on macOS (ARM64). Device recognition works without issues.

@daringer daringer merged commit 1e3f228 into main Aug 27, 2024
10 checks passed
@daringer daringer deleted the usb-mon branch August 27, 2024 08:48
@robin-nitrokey
Copy link
Member

AFAIS this also allows us to remove the pyudev dependency.

@daringer
Copy link
Collaborator Author

daringer commented Sep 9, 2024

right, done here: #272

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

Successfully merging this pull request may close these issues.

macOS: auto-detection (add/remove device) not working properly
4 participants