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:
Robin Appelman 2026-01-29 01:19:56 +01:00
commit ecef69f347

View file

@ -60,7 +60,7 @@ impl ShortcutSignal {
async fn main() -> Result<(), MainError> { async fn main() -> Result<(), MainError> {
tracing_subscriber::fmt::init(); tracing_subscriber::fmt::init();
let devices = 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 listener = ShortcutListener::new();
let mut shortcut_events = pin!(listener.listen(&devices)?); let mut shortcut_events = pin!(listener.listen(&devices)?);