On Wed, 03 Dec 2025 at 12:29:20 +0100, Simon Josefsson wrote:
Will running dh_installsystemduser be useful on systems that doesn't support compat 14?
It's still useful: in compat levels 12 and 13 it only enables the new units so they are run on subsequent user logins (by creating symlinks in /etc/systemd/user/*.target.wants), with the limitation that it does not restart them for users who already have a `systemd --user` running. This is how the pipewire{,-pulse} packages work, for example.
ifeq (compat 14 is available)
override_dh_installsystemduser:
DH_COMPAT=14 dh_installsystemduser ...
endif
This construct still runs dh_installsystemduser (if it's in the dh sequence, which it is, since compat level 12), just without an override, therefore without any special options.
smcv