Comment 17 for bug 678421

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Hello,

I also confirm that this bug can still be annoying with the latest versions of GDM and LightDM :-)
And it can be an easy way to make some jokes just by modifying the .profile! Then it will be hard for the user to understand why he can no longer start a new session.

Is it maybe possible to just add an error message if there are problems with the .profile file?
We can easily detect if there are errors in this .profile file as already written before:

    . ~/.profile || echo ERROR

But also without executing any code:

    sh -n ~/.profile || echo ERROR

Thank you for maintaining GDM and LightDM!