removing gdm results in dm chooser question even when only 1 dm is left

Bug #1055292 reported by Tim Lunn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When removing gdm package on quantal, the dm chooser question is always presented, even when there is only one dm remaining on the system. This seems to be caused by an issue in the debconf gdm.prerm script.

I made a little test script and discovered the following, although I am not actually sure why the "|| true" is interfering with the unregister. Test case #2 below returns the correct result. I do note this does not appear to happen on precise which uses the commands as per the #1 test case. fwiw lightdm uses #2 also.

1. running (this is what is currently in the prerm script):
    db_unregister shared/default-x-display-manager || true
    db_get shared/default-x-display-manager

returns:
    debconf (developer): <-- UNREGISTER shared/default-x-display-manager
    debconf (developer): --> 0
    db_get shared/default-x-display-manager
    debconf (developer): <-- GET shared/default-x-display-manager
    debconf (developer): --> 0 lightdm

2. running (this produces the correct output):
    db_unregister shared/default-x-display-manager
    db_get shared/default-x-display-manager
returns:
    debconf (developer): <-- starting
    debconf (developer): <-- UNREGISTER shared/default-x-display-manager
    debconf (developer): --> 0

Related branches

Revision history for this message
Tim Lunn (darkxst) wrote :

There is also a second issue in the `gdm.prerm` script, lightdm no longer has a 'daemon_name' key, so the following command will fail with status 10, if someone trys to configure lightdm from the dm chooser when removing gdm.

db_get "$RET"/daemon_name

This will only cause be a problem when the user has > 1 dm remaining on the system after uninstalling gdm. Although it does currently always trigger an error message due to the chooser bug.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdm - 3.6.0-0ubuntu1

---------------
gdm (3.6.0-0ubuntu1) quantal; urgency=low

  [ Jeremy Bicha ]
  * New upstream bugfix release.
    - Fixes broken lock screen/switch user handling (LP: #1053666)
  * 09_default_session.patch:
    - Dropped, all the other Ubuntu flavors use LightDM and it only
      takes a gsettings override to set a different default session

  [ Tim Lunn ]
  * debian/gdm.config, debian/gdm.prerm:
    - Fix debconf scripts by copying what lightdm does (LP: #1055292)
 -- Jeremy Bicha <email address hidden> Tue, 25 Sep 2012 21:48:50 -0400

Changed in gdm (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.