On Mon, Nov 25, 2024 at 5:21 AM Mantas Mikulėnas <graw...@gmail.com> wrote:
> On Mon, Nov 25, 2024 at 12:57 PM Lennart Poettering < > lenn...@poettering.net> wrote: > >> ... >> "uaccess" ḿeans access to devices can come and go any time, as the >> user switches sessions, as sessions come and go. This means programs >> which want access to such devices need to be written with this in >> mind: watch udev events, and try to reopen the devices whenever you >> receive an event for the relevant audio device and access is >> permitted. (logind will re-retrigger relevant devices whenever the fg >> session changes, so that the udev rules are rerun and apps are >> notified about the new situation via udev events) >> > > I don't see logind doing that here. It seems to only set the new ACLs > directly (devnode_acl_all() in seat.c) but there are no uevents that I > could see during a VT switch. > Does logind do smth after the ACL update is complete? Something that could be used in systemd unit definition as a dependency (to wait for)... Regards, Michael.