mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
udev: directly import the device groups
No need for the indirection of PROGRAM, then ENV for the output value. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
19898eb2b2
commit
8040f94637
2 changed files with 2 additions and 5 deletions
|
|
@ -1,9 +1,6 @@
|
|||
ACTION!="add|change", GOTO="libinput_device_group_end"
|
||||
KERNEL!="event[0-9]*", GOTO="libinput_device_group_end"
|
||||
|
||||
ATTRS{phys}=="?*", \
|
||||
ENV{LIBINPUT_DEVICE_GROUP}=="", \
|
||||
PROGRAM="@UDEV_TEST_PATH@libinput-device-group %S%p", \
|
||||
ENV{LIBINPUT_DEVICE_GROUP}="%c"
|
||||
ATTRS{phys}=="?*", IMPORT{program}+="@UDEV_TEST_PATH@libinput-device-group %S%p"
|
||||
|
||||
LABEL="libinput_device_group_end"
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ int main(int argc, char **argv)
|
|||
if (str && str > strrchr(group, '-'))
|
||||
*str = '\0';
|
||||
|
||||
printf("%s\n", group);
|
||||
printf("LIBINPUT_DEVICE_GROUP=%s\n", group);
|
||||
|
||||
rc = 0;
|
||||
out:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue