~kennylevinsen/seatd#1: 
Support opening alternate seats

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

Status
REPORTED
Submitter
~kennylevinsen
Assigned to
No-one
Submitted
1 year, 9 months ago
Updated
2 months ago
Labels
enhancement seatd

~kennylevinsen 1 year, 5 months 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 months 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 months 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 months 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.