Comment 68 for bug 678421

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Ok, thanks, Daniel. This way I learned something new. :)

I think the reason for the confusion is that stderr is already redirected when the code in ~/.profile is run. It's done through this line in /usr/sbin/lightdm-session:

  . "$CONFIG_FILE" 2>"$ERR"

So if you want it to work as before, you need to modify your redirects (I'm not able to tell exactly how, though). Otherwise things probably don't end up as you expect, even if you were able to avoid the error dialog by moving down the 'set -x' statement.