Support opening alternate seats

seatd internally tracks arbitrary seats, but currently sends all clients to the default seat0.

Assigned to
3 years ago
2 years ago
enhancement seatd

~kennylevinsen 3 years ago

Implementation idea:

  1. Add seat name to open request
  2. Execute an external program to evaluate if seat exists
  3. On device open, execute external program to evaluate if device belongs to seat.

This allows us to be device event system agnostic, and avoids racing with the clients device event implementation.

~kennylevinsen 2 years ago

Alternative, simpler implementation idea that can be used as starting point

  1. Add seat name to open request
  2. Add an argument to seatd for list of available seats (later: configuration file, seatctl, or even just "allow any seat name but at most 16 simultaneous seats")
  3. Let a seat open any device if no other seat currently has it open - this way we do not yet need a filter mechanism

illiliti 2 years ago ยท edit

It also would be cool if libseat had an API to get seat of device.

Something like:

int libseat_get_device_seat(struct libseat *seat, const char *devpath, const char **seat_name);

That would allow programmatically getting seat without udev, elogind, systemd and all of that non-portable stuff.

~kennylevinsen 2 years ago

What is the use-case?

logind uses the seat association from udev itself, but it does not appear to expose this over its API. libseat would have to integrate with udev to query the SEAT property of the device.

(seatd has not yet defined a way to associate a device with a seat.)

Register here or Log in to comment, or comment via email.