gsd-color, gsd-keyboard, gsd-media-keys, and gsd-power not running after logging in after a gnome-shell crash
Today, after hitting an unrelated gnome-shell crash (mutter#842 (closed)) and logging back into gnome-shell, Super+L doesn't lock my screen and my custom Super+T shortcut doesn't open a terminal. I thought this was mutter#822 (closed), but that is an X11-specific bug and I am using Wayland. Turns out that gsd-color, gsd-keyboard, gsd-media-keys, and gsd-power are not running after logging in after a gnome-shell crash. You can reproduce it this way:
$ killall -SEGV gnome-shell
$ killall -SEGV gnome-shell
You have to do it twice because the first one gets caught by a signal handler. Then, after logging in, these gsd plugins are not running. If I check why, I see:
$ systemctl status --user gsd-keyboard
● gsd-keyboard.service - GNOME Keyboard handling
Loaded: loaded (/usr/lib/systemd/user/gsd-keyboard.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-10-09 13:06:10 CDT; 3min 36s ago
Process: 3169 ExecStart=/usr/libexec/gsd-keyboard (code=exited, status=1/FAILURE)
Main PID: 3169 (code=exited, status=1/FAILURE)
CPU: 15ms
Oct 09 13:06:10 chargestone-cave systemd[1553]: gsd-keyboard.service: Service RestartSec=100ms expired, scheduling restart.
Oct 09 13:06:10 chargestone-cave systemd[1553]: gsd-keyboard.service: Scheduled restart job, restart counter is at 6.
Oct 09 13:06:10 chargestone-cave systemd[1553]: Stopped GNOME Keyboard handling.
Oct 09 13:06:10 chargestone-cave systemd[1553]: gsd-keyboard.service: Start request repeated too quickly.
Oct 09 13:06:10 chargestone-cave systemd[1553]: gsd-keyboard.service: Failed with result 'exit-code'.
Oct 09 13:06:10 chargestone-cave systemd[1553]: Failed to start GNOME Keyboard handling.
Oct 09 13:06:10 chargestone-cave systemd[1553]: gsd-keyboard.service: Triggering OnFailure= dependencies.
Oct 09 13:06:15 chargestone-cave systemd[1553]: gsd-keyboard.service: Start request repeated too quickly.
Oct 09 13:06:15 chargestone-cave systemd[1553]: gsd-keyboard.service: Failed with result 'exit-code'.
Oct 09 13:06:15 chargestone-cave systemd[1553]: Failed to start GNOME Keyboard handling.
The other plugins look the same, they entered the failed state because "Start request repeated too quickly."
This looks similar to #453 (closed), but it's really different because in that bug the services are running but unresponsive, while in my case the services are not running at all.