summarylogtreecommitdiffstats
path: root/kodi-devel.install
diff options
context:
space:
mode:
Diffstat (limited to 'kodi-devel.install')
-rw-r--r--kodi-devel.install24
1 files changed, 24 insertions, 0 deletions
diff --git a/kodi-devel.install b/kodi-devel.install
new file mode 100644
index 000000000000..06e9c8960372
--- /dev/null
+++ b/kodi-devel.install
@@ -0,0 +1,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"
+}