post_install() {
    cat << 'MSG'
==> xdg-desktop-portal-dwm installed.
==> Add to .xinitrc BEFORE exec dwm (dotfiles-friendly):
      export XDG_CURRENT_DESKTOP=dwm
      systemctl --user import-environment DISPLAY XAUTHORITY XDG_CURRENT_DESKTOP
      systemctl --user start graphical-session.target
==> Then restart the portal frontend (or relog):
      systemctl --user restart xdg-desktop-portal
==> Note: an existing ~/.config/xdg-desktop-portal/portals.conf overrides
==> the packaged routing; make sure it routes Screenshot=dwm or delete it.
MSG
}

post_upgrade() {
    echo "==> Restart the backend: systemctl --user restart xdg-desktop-portal-dwm"
}
