After restarting gnome-shell, when my screen is locked I can no longer enter my password. When I type a character into the password field the character is erased immediately and the message "Authentication Error" is visible all the time (even before starting to type anything).
This is Ubuntu 18.04, Gnome shell 3.28
This turns out to be dependent on how gnome-shell is restarted. I used to do this by typing
gnome-shell --replace
in a gnome terminal. It turns out that commands run from gnome-terminal are not considered part of the session, but of the gnome-terminal service and this causes the problem. Seeloginctl user-status
for how your processes are grouped into sessions and services, orsystemd-cgls
for al processes in the system.To avoid this, restart gnome-shell using the shortcut Alt+F2
r
(Alt-F2 to open the run dialog, typer
as command, enter), or rungnome-shell --replace
from a terminal that does not run in its own service, such asxterm
.Edit: apparently
gnome-shell --replace
won't work anymore on Ubuntu 18.10+. See here