Open sm-Fifteen opened 4 years ago
@sm-Fifteen Please feel free to go ahead and assemble a PR to fix this problem, I expect I would be able to review it in a few days.. I suspect that the code base no longer includes any tests to verify that these properties of the search hold (because it turns out that the properties and attributes are too volatile, and so the tests will intermittently fail).
The documentation states the following:
This is technically true, and also applies to
list_devices
, however the way those filters are combined depends on the keys being matched. It was clarified in systemd/systemd#2995 and systemd/systemd#11520 that:So if I have a Logitech keyboard (
046d:c52b
) and mouse (046d:c537
) plugged:...property-matching picks up both of them, even if I'm only trying to match the keyboard. However, if I instead attempt attribute-matching:
...only the keyboard is matched, since both filters are combined with AND.