lightdm overrides dh_installinit in debian/rules and shouldn't

Bug #1292990 reported by Steve Langasek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lightdm (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

The debian/rules for lightdm includes the following:

override_dh_installinit:
        dh_installinit --no-start

This appears to have been in place since the beginning of the package's history, with no reason given. And the result of this override is that if you install lightdm on a running system, lightdm will not be automatically started at install time like it should be.

Please drop this override from the package.

Related branches

Revision history for this message
Sebastien Bacher (seb128) wrote :

that override is there to avoid having lightdm restarting on upgrade, which would have as an effect to restart user sessions...

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1292990] Re: lightdm overrides dh_installinit in debian/rules and shouldn't

On Sun, Mar 16, 2014 at 10:26:41AM -0000, Sebastien Bacher wrote:
> that override is there to avoid having lightdm restarting on upgrade,
> which would have as an effect to restart user sessions...

That's not the right way to avoid restarting. If you need to avoid
restarts, there's a separate '-r' option to dh_installinit.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Robert, was I right assuming the reason for the override? If so it seems like using -r would be right. Note that gdm has the same issue

Revision history for this message
Robert Ancell (robert-ancell) wrote :

If GDM has the same issue then it's probably just a copy-paste error. I'm happy with whatever you guys think is appropriate.

Changed in lightdm (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in lightdm (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lightdm - 1.19.0-0ubuntu1

---------------
lightdm (1.19.0-0ubuntu1) yakkety; urgency=medium

  * New upstream release:
    - Use /dev/tty0 instead of /dev/console for VT operations (LP: #1566073)
    - Don't quit on SIGUSR1, SIGUSR2 or SIGHUP (LP: #960157)
    - Improve XDMCP IPv6 address selection (LP: #1575200)
    - Set XDMCP hostname field in to system hostname or configured value
      (LP: #1578442)
    - Allow fcitx and mozc to run in guest session (LP: #1509829)
    - Fix lxsession running in guest session
    - Drop support for legacy XMir
    - Fix g_spawn compiler warning
  * debian/rules:
    - Fix usage of dh_installinit (LP: #1292990)

 -- Robert Ancell <email address hidden> Thu, 05 May 2016 12:23:45 +1200

Changed in lightdm (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

> lightdm will not be automatically started at install time like it should be

I disagree that a display manager should start at install time. It's potentially too disruptive and as we've seen you might still need to configure it first before it actually works. (Like in bug 1581106).

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Based on Martins issue I've reverted this change and added a comment.

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.