/etc/gdm/PostLogin/Default not run in gdm 2.30 if autologin is enabled
Submitted by RobertC
Link to original bug (#621693)
Description
In Ubuntu 10.04 with gdm 2.30.0, the file /etc/gdm/PostLogin/Default is not run if autologin is enabled.
This was tested on 2 very different configurations:
- 2 desktops which were recently upgraded from Jaunty to Karmic then to Lucid;
- 1 laptop with a fresh install of Lucid.
Steps to reproduce the bug:
-
Create a simple /etc/gdm/PostLogin/Default file, for example with this content: #!/bin/sh echo "Test" > /tmp/aaa
-
Logout from your session and log in again. Check for the existence of a /tmp/aaa file. It will exist.
-
Delete the /tmp/aaa file. Enable autologin to any existing account and reboot. Check for the existence of a /tmp/aaa file. This time it will NOT exist.
-
Disable autologin and reboot, then login into the same account as before. Check for the existence of a /tmp/aaa file. Now it will exist again.
My conclusion is that the file /etc/gdm/PostLogin/Default is run during a manual login but ignored if autologin is enabled.
I would expect the file to be run in both cases, as this happened for example with Ubuntu 9.04.
Additional remarks: A. I did a similar test with /etc/gdm/PreSession/Default and found it is NOT affected by this bug. B. The bug is still present after upgrading the gdm package to version 2.30.2.is.2.30.0-0ubuntu1 which is available from the lucid-proposed repository. C. This bug was initially reported here: https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/586503
Version: 2.30.x