mirror of
https://codeberg.org/icewind/shortcutd.git
synced 2026-06-03 09:14:07 +02:00
Merge pull request 'Fix input devices Glob pattern missing devices in /dev/by-path/' (#1) from steveplays/shortcutd:fix/fix-input-devices-glob-pattern into master
Reviewed-on: https://codeberg.org/icewind/shortcutd/pulls/1
This commit is contained in:
commit
ecef69f347
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ impl ShortcutSignal {
|
|||
async fn main() -> Result<(), MainError> {
|
||||
tracing_subscriber::fmt::init();
|
||||
let devices =
|
||||
glob::glob("/dev/input/by-id/*-kbd")?.collect::<Result<Vec<PathBuf>, GlobError>>()?;
|
||||
glob::glob("/dev/input/by-*/*-kbd")?.collect::<Result<Vec<PathBuf>, GlobError>>()?;
|
||||
|
||||
let listener = ShortcutListener::new();
|
||||
let mut shortcut_events = pin!(listener.listen(&devices)?);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue