summarylogtreecommitdiffstats
path: root/kodi-devel.install
blob: 06e9c8960372da74edf70609c3686a9fea1cff98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
post_install() {
  update_icons
  update_autostart
}

post_upgrade() {
  update_icons
  update_autostart
}

post_remove() {
  update_icons
  update_autostart
}

update_icons() {
  type -p gtk-update-icon-cache > /dev/null 2>&1 && /usr/bin/gtk-update-icon-cache -qtf /usr/share/icons/hicolor
  type -p update-desktop-database > /dev/null 2>&1 && /usr/bin/update-desktop-database -q /usr/share/applications
  return 0
}

update_autostart() {
  echo "To autostart Kodi standalone read: https://wiki.archlinux.org/index.php/Kodi#Autostarting_at_boot_or_ondemand"
}