summarylogtreecommitdiffstats
path: root/notion-app-enhanced.install
blob: 8ca9b54867a112cc03df424d6874435a5068ac71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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'
}