logind: give better error messages when failing to attach devices to seats
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Sep 2023 11:57:42 +0000 (13:57 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 5 Sep 2023 16:57:57 +0000 (17:57 +0100)
commit08237f062e9a2020c6d457a4112e363ee9ff879d
treeebec9f69258eccf521db1e57d900c1fb75a7f8ab
parent6c22badfce77837cbbfabc613276afc625373fa7
logind: give better error messages when failing to attach devices to seats

When the user tries to attach a device lacking ID_FOR_SEAT they
currently get a very cryptic error message. Let's improve the situation
a bit. Still a bit cryptic maybe, but much less so.

Inspired-by: https://lists.freedesktop.org/archives/systemd-devel/2023-September/049469.html
Inspired-by: https://lists.freedesktop.org/archives/systemd-devel/2023-September/049484.html
Also-see: https://lists.freedesktop.org/archives/systemd-devel/2023-September/049470.html
Also-see: https://lists.freedesktop.org/archives/systemd-devel/2023-September/049489.html
src/login/logind-dbus.c