Skip to content

Replace inotify with notify crate for device hotplug detection#112

Closed
krystophny wants to merge 1 commit intopeteonrails:mainfrom
krystophny:upstream-pr-notify
Closed

Replace inotify with notify crate for device hotplug detection#112
krystophny wants to merge 1 commit intopeteonrails:mainfrom
krystophny:upstream-pr-notify

Conversation

@krystophny
Copy link
Collaborator

Summary

  • Switch device hotplug detection from inotify to notify crate
  • notify is already used for status --follow, so this consolidates dependencies
  • The notify crate uses inotify internally on Linux, so behavior is unchanged

Test plan

  • Verify device hotplug detection still works when plugging/unplugging keyboards
  • Verify voxtype status --follow still works
  • Run cargo test on Linux

@krystophny krystophny mentioned this pull request Jan 22, 2026
5 tasks
This switches the device hotplug detection in the evdev listener from
using inotify directly to using the notify crate, which abstracts
filesystem watching across platforms.

Benefits:
- Cleaner dependency (notify is already used for status --follow)
- The notify crate is better maintained and more widely used
- Prepares codebase for future cross-platform support

The notify crate uses inotify internally on Linux, so behavior is
unchanged on the primary platform.
@peteonrails peteonrails mentioned this pull request Jan 27, 2026
5 tasks
@peteonrails
Copy link
Owner

Superseded by #129 which incorporates cross-platform device hotplug support. Thank you for the contribution!

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.

2 participants