aboutsummaryrefslogtreecommitdiff
path: root/games/hatari/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'games/hatari/doinst.sh')
-rw-r--r--games/hatari/doinst.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/games/hatari/doinst.sh b/games/hatari/doinst.sh
index 3e5691a052b5..ae52932a11ad 100644
--- a/games/hatari/doinst.sh
+++ b/games/hatari/doinst.sh
@@ -1,3 +1,7 @@
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
@@ -7,3 +11,8 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
+
+# if there's no tos.img symlink, take over with emutos.img
+if [ ! -r usr/share/hatari/tos.img ]; then
+ ( cd usr/share/hatari ; ln -sf emutos.img tos.img )
+fi