Followup-For: Bug #775385 Control: found -1 1.18.3-1 quoting from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832351#27
On Tue, 20 Dec 2016 20:30:47 -0300 Felipe Sateler <fsate...@debian.org> wrote: > And indeed Didier Roche proposed a solution (in the form of a patch to > gdm3)[1]. I'm cloning and reassigning this bug to the two display > managers that do not have a bug already. The TLDR of the solution is: > > 1. Have your systemd unit Alias=display-manager.service > 2. Use the --no-enable flag to dh_systemd_enable > 3. Use `systemctl enable $DEFAULT_SERVICE` in the postinst > > Step 1 and 2 should ensure the symlinks are removed on purge. > > [1] > https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=764607;filename=use-systemd-alias.debdiff;msg=19 Andreas