Commit 8040f946 authored by Peter Hutterer's avatar Peter Hutterer

udev: directly import the device groups

No need for the indirection of PROGRAM, then ENV for the output value.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 19898eb2
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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment