Feature request: Provide (better) feedback on the session login failure
Affected version
- OS: Fedora 31
- GDM 3.34.1-1
- mutter 3.34.3
- gnome-shell 1:3.34.3
Bug summary
Having [[ $- == *i* ]] || exit 0
in .bashrc
prevents graphic session from starting and no error message to understand the issue.
Tested sessions: GNOME Wayland, GNOME Xorg, GNOME Classic and Enlightenment.
Login via TTY using Alt + Ctrl + F3 is working of course (hopefully).
Steps to reproduce
- Insert
[[ $- == *i* ]] || exit 0
at the bottom of the.bashrc
file. - Try to start a session.
What happened
When logging into the GNOME session from GDM the screen flashes black and goes back to GDM. There is no error message. I have just noticed a very brief black screen.
However, on wrong password, GDM says "Sorry, that didn't work. Please try again." (I think this error message should be "Wrong password. You may use contextual menu to show your password. Please try again.")
What did you expect to happen
My request is to improve the user experience by providing useful error message: providing useful information to help the user fix the issue. A further enhancement could be to propose the user opening the session in a "safe mode" (bypassing the .bashrc
).
This request also addresses #556 (closed)
Relevant logs, screenshots, screencasts etc.
I have spent many hours to figure out the issue because my GNOME session was up and running for a couple of weeks and I made many changes. A useful error message could indicate the log filename. As I thought wasting my time searching/reading GDM documentation I did not search/read for GDM logs.