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 <>
parent 19898eb2
ACTION!="add|change", GOTO="libinput_device_group_end"
KERNEL!="event[0-9]*", GOTO="libinput_device_group_end"
ATTRS{phys}=="?*", \
PROGRAM="@UDEV_TEST_PATH@libinput-device-group %S%p", \
ATTRS{phys}=="?*", IMPORT{program}+="@UDEV_TEST_PATH@libinput-device-group %S%p"
......@@ -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;
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