If you aren't familiar with libseat, have a look at their README, it's a cool project.
@wolf480pl Not planned AFAIK, but not sure it would make sense. Audio devices don't require root, do they?
$ ls -l /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116, 3 08-14 21:28 /dev/snd/pcmC0D0c
$ getfacl /dev/snd/pcmC0D0c
# owner: root
# group: audio
I mean, they are owned by root, they do belong to a seat, and it's logind that does setfacl for the currently logged in user...
I've also seen pulseaudio lose access to a device on vt switch, not sure if it's revoked like DRM, or some other mechanism...
@emersion ok, it looks like the uaccess tag is detected by some udev rules which call builtin uaccess, which in turn gets the current user on the device's seat, and sets acls to give access to that user.
It respects the ID_SEAT variable, defaulting to seat0, so I'd say those devices do belong to the seat.
Also, it involves udev querying logind.
@stacyharper Sway itself doesn't. Tools like swaybar and mako depend on (e)logind for the sd-bus library, because that's the only sane dbus library
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!