Merge lp:~laney/lightdm/no-prompt-upgrade into lp:lightdm
Status: | Merged |
---|---|
Merged at revision: | 2495 |
Proposed branch: | lp:~laney/lightdm/no-prompt-upgrade |
Merge into: | lp:lightdm |
Diff against target: |
37 lines (+15/-1) 2 files modified
debian/changelog (+12/-0) debian/lightdm.config (+3/-1) |
To merge this branch: | bzr merge lp:~laney/lightdm/no-prompt-upgrade |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Didier Roche-Tolomelli | Approve | ||
Ken VanDine | Pending | ||
LightDM Development Team | Pending | ||
Review via email: mp+327521@code.launchpad.net |
Description of the change
gdm3 is fixed for this issue, but lightdm causes the same prompt to be shown. Something like this happens-
- user does a dist-upgrade (or release upgrade)
- after downloading the packages, they are preconfigured (.config scripts are run)
+ ...
+ gdm3.config is run, sets gdm3 as the default
+ ...
+ lightdm.config is run, sees gdm3 is the default and prompts the user
I think at the last step there we should intercept and not show the prompt.
I didn't think of a really good way to do this. You can't tell from the script if you're being called as part of preconfiguring or configuring (postinst). So after some head scratching I just decided to do this: if you're upgrading from an old version, don't show the prompt. The rationale is that it's not very likely that an upgrader wants to change their display manager - that is normally going to come from a new install.
But I think this is worth a review instead of me just uploading. Opinions welcomed.
As discussed on IRC, and with your additional manual testing, +1 from my side