post_install() {
  ln -sf '/opt/Notion Enhanced/notion-app-enhanced' '/usr/bin/notion-app-enhanced'

  # SUID chrome-sandbox for Electron 5+
  chmod 4755 '/opt/Notion Enhanced/chrome-sandbox' || true

  update-mime-database /usr/share/mime || true
  update-desktop-database /usr/share/applications || true
}

post_remove() {
  rm -f '/usr/bin/notion-app-enhanced'
}
