Comment 0 for bug 586503

Revision history for this message
Robert Chalmas (robert-chalmas) wrote :

Binary package hint: gdm

In Ubuntu 10.04 with gdm 2.30.0, the file /etc/gdm/PostLogin/Default is not run if automatic login 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:

1. Create a simple /etc/gdm/PostLogin/Default file, for example with this content:

#!/bin/sh

echo "Test" > /tmp/aaa

2. Logout from your session and log in again.

Check for the existence of a /tmp/aaa file. It will exist.

3. Delete the /tmp/aaa file. Enable automatic login to any existing account and reboot.

Check for the existence of a /tmp/aaa file. This time it will NOT exist.

4. Disable the automatic login 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 during an automatic login.

I would expect the file to be run in both cases, as this happened for example with Jaunty.

One more detail: I did a similar test with /etc/gdm/PreSession/Default and found it is NOT affected by this bug.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gdm 2.30.0-0ubuntu5
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Thu May 27 21:04:56 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANG=fr_CH.utf8
 SHELL=/bin/bash
SourcePackage: gdm