post_install() {
  echo "Enabling and starting slimbook service..."
  systemctl enable --now slimbook

  # Install Slimbook Client Autostart
  cp usr/share/slimbook/slimbook-client-autostart.desktop etc/skel/.config/autostart/
}

post_upgrade() {
  echo "Restarting slimbook service..."
  systemctl restart slimbook
}

pre_remove() {
  echo "Disabling and stopping slimbook service..."
  systemctl disable --now slimbook
}

post_remove() {

  # Remove Slimbook Client Autostart
  rm etc/skel/.config/autostart/slimbook-client-autostart.desktop
}
