Add inotify::WatchMask::MODIFY to inotify watch mask.

Closes #362
This commit is contained in:
Luke D. Jones
2023-06-20 22:23:54 +12:00
parent e2fb1d44b5
commit 3e0aeea6c6
2 changed files with 3 additions and 2 deletions

View File

@@ -9,10 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support for FX507Z LED modes
- Support for GL503V LED modes
- Support the Rear Glow on some laptops
- Support for GV601VI LED modes
- Support most of M16 AniMe Matrix
### Changed
- Move FX506HC to FX506H in arua DB to catch full series of this range
- Move FX506LH to FX506L in arua DB to catch full series of this range
- Support for GV601VI LED modes
- Rmeove notification handle tracking limit, fixes KDE issue with profile notif
## [v4.6.2]

View File

@@ -23,7 +23,7 @@ macro_rules! watch_attr {
path.push($attr_name);
if let Some(path) = path.to_str() {
let inotify = inotify::Inotify::init()?;
inotify.watches().add(path, inotify::WatchMask::CLOSE_WRITE)
inotify.watches().add(path, inotify::WatchMask::CLOSE_WRITE | inotify::WatchMask::MODIFY)
.map_err(|e| {
if e.kind() == std::io::ErrorKind::NotFound {
PlatformError::AttrNotFound(format!("{}", $attr_name))