From 1a39fe1284e662c86f0caa8760be659e09debac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20M=C3=BCller?= Date: Sat, 31 May 2025 22:22:53 +0200 Subject: [PATCH] udev uaccess rules must have lower order than 73-seat-late.rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see, for example, https://github.com/bigbigmdm/IMSProg/issues/98 . If the rule granting uaccess tag to a device is loaded after the seat-late rule, seat-late can't grant the user access to the device. Signed-off-by: Marcus Müller --- CMakeLists.txt | 2 +- ...ptouch-permissions.rules => 20-usb-ptouch-permissions.rules} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename udev/{90-usb-ptouch-permissions.rules => 20-usb-ptouch-permissions.rules} (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38741ee..fd5a3bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,6 @@ install(TARGETS ${PROJECT_NAME} DESTINATION bin) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ptouch-print.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) if(EXISTS /etc/udev/rules.d) - install(FILES udev/90-usb-ptouch-permissions.rules DESTINATION /etc/udev/rules.d) + install(FILES udev/20-usb-ptouch-permissions.rules DESTINATION /etc/udev/rules.d) install(CODE "execute_process(COMMAND udevadm control --reload-rules)") endif() diff --git a/udev/90-usb-ptouch-permissions.rules b/udev/20-usb-ptouch-permissions.rules similarity index 100% rename from udev/90-usb-ptouch-permissions.rules rename to udev/20-usb-ptouch-permissions.rules