post_install() {
  # Enable update by default
  systemctl --global enable xdg-user-dirs-update.service
}

post_upgrade() {
  if (( $(vercmp $2 0.15-3) < 0)); then
    systemctl --global enable xdg-user-dirs-update.service
  fi
}

pre_remove() {
  systemctl --global disable xdg-user-dirs-update.service
}
