aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-03-16ci: Reduce test runs from 5 to 2Kenny Levinsen
2021-03-16meson: Disable examples by defaultKenny Levinsen
2021-03-16Correct minor misspellingsKenny Levinsen
2021-03-16meson: Minor cleanupKenny Levinsen
2021-03-16meson: Fix logind backend auto modeKenny Levinsen
2021-03-15Bump version to 0.5.0Kenny Levinsen
2021-03-15ci: Add clang-extra-tools to alpineKenny Levinsen
Needed for the clang-format target.
2021-03-15meson: Fix indentationKenny Levinsen
2021-03-15meson: Make summary prettierKenny Levinsen
2021-03-15meson: Clean up test declarations a bitKenny Levinsen
2021-03-02log: Include debug logs in release buildsKenny Levinsen
2021-03-02Normalize log texts a bitKenny Levinsen
2021-03-01log: Remove function name from logKenny Levinsen
2021-02-27clang-formatKenny Levinsen
2021-02-27seatd: Close cur_ttyfd in seat_destroyKenny Levinsen
This fd would only still be set after closing clients if no clients were active on the current VT.
2021-02-27client: Remove link if seat_add_client succeedsKenny Levinsen
Removing the link before before means that we can return without a link, resulting in a double-remove.
2021-02-27seatd: Clean up debug logs a bitKenny Levinsen
2021-02-27Convert a few debug logs to error logsKenny Levinsen
2021-02-27seatd: Set errno in seat_add_clientKenny Levinsen
2021-02-27logind: Fix return values from close_device/get_fdKenny Levinsen
2021-02-27libseat: Fix typo in doc stringKenny Levinsen
2021-02-27meson: ignore 'man-pages' if 'server' is disabledAleksei Bavshin
`seatd.1` is the only man page, so it's not necessary to install it or require scdoc when the server is not built.
2021-02-27seatd: Tear down VT when disabled client closesKenny Levinsen
If a client closed while it was disabled, the VT would not be torn down. If the user navigated back to the VT it belonged to, they would be stuck. When a client is disabled, open the fd for the VT it belonged to and perform regular teardown on it.
2021-02-27client: Replace pending_disable with state enumKenny Levinsen
This simplifies logic in seat handling.
2021-02-02seat: Remove unused arg from seat_deactive_deviceKenny Levinsen
2020-12-23logind: Send ReleaseControl when closing seatKenny Levinsen
This is not strictly speaking necessary as detaching from the bus should trigger this automatically, but elogind apparently has issues with this. Doing this explicitly does no harm, so let's just do that.
2020-12-14simpletest: Close fd after closing deviceKenny Levinsen
2020-12-10client: Fix typo in cr_pid usageKenny Levinsen
2020-12-08client: Use cr_pid if availableKenny Levinsen
This is only available on FreeBSD 13, so test for that version.
2020-12-08client: Do not use SOL_SOCKET for LOCAL_PEERCREDKenny Levinsen
This is wrong, and leads to LOCAL_PEERCRED being interpreted as SO_DEBUG. 0 should be used instead. See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246189.
2020-12-04libseat/backend/logind: stop waiting for CanGraphicalSimon Ser
Upstream says compositors should wait for DRM nodes using udev instead.
2020-11-24logind: switch_session should return 0 on successKenny Levinsen
It currently returned -1 on failure and 1 on success. The API is intended to return -1 on failure and 0 on success, so fix that.
2020-11-23terminal: Improve loggingKenny Levinsen
2020-11-23client: More robust handling of client linksKenny Levinsen
2020-11-23poller: Retry poll immediately on EINTRKenny Levinsen
There is nothing for us to dispatch unless we wake on an fd, so just retry poll if it fails with EINTR instead of doing a full dispatch loop.
2020-11-21libseat: log error when failing to open socketIsaac Freund
The most common pain point I've seen with people trying out seat is forgetting to add themselves to whatever group the distro has chosen to own the socket. Logging this error and path of the socket should make it easier to tell why things aren't working.
2020-11-03ci: Clean up build manifestsKenny Levinsen
2020-10-19Bump version to 0.4.0Kenny Levinsen
2020-10-16readme: Update mailing list linkKenny Levinsen
2020-10-12connection: Add unittestKenny Levinsen
2020-10-11libseat: Better error reporting from open_seatKenny Levinsen
2020-10-11logind: clang-formatKenny Levinsen
2020-10-10logind: Use seat_path for SwitchToKenny Levinsen
2020-09-28logind: close_device should not close fdKenny Levinsen
2020-09-22seat: Only close VT if no new session was foundKenny Levinsen
2020-09-22terminal: Ack both release and acquireKenny Levinsen
Linux only requires acking release and ignores ack of acquire, but FreeBSD is more stringent and will patiently wait for both to be acked. Implement proper acking for both events.
2020-09-22seat: Use current VT for switch and ackKenny Levinsen
2020-09-22terminal: Fix VT numbering on FreeBSDKenny Levinsen
FreeBSD adds one to the VT number returned by the GET_ACTIVE ioctl, so to match things up, the wrapper here subtracted by one. This lead to ttyv0 being named VT 0. This had the side-effect of VT numbering not matching expectations, and switching not behaving as intended. Align numbers with expectations, and move the required subtraction to terminal_open, so that VT 1 matches ttyv0.
2020-09-22libseat/seatd: Fix socket path boundsKenny Levinsen
2020-09-22meson: Make default seatd socket path configurableKenny Levinsen
FreeBSD and Linux have different preferred socket locations. Expose an option to set the location, and implement simple auto-logic for linux/freebsd.