Skip to content

Commit

Permalink
[linuxinput] show event node in label
Browse files Browse the repository at this point in the history
This makes it easier to figure out which thing is which device in the
presence of symlinks or multiple identical devices.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
  • Loading branch information
t-8ch committed May 2, 2021
1 parent dc4081d commit b1d513d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private boolean enrichDevice(DiscoveryResultBuilder builder, File inputDevice) {
String labelFromDevice = device.getName();
boolean isKeyboard = device.has(EvdevLibrary.Type.KEY);
if (labelFromDevice != null) {
label = labelFromDevice;
label = String.format("%s (%s)", labelFromDevice, inputDevice.getName());
}
return isKeyboard;
} finally {
Expand Down

0 comments on commit b1d513d

Please sign in to comment.