haiku/data/common/boot/post_install/mime_update.sh
Philippe Houdoin d7553dfed0 Now using finddir to get system path, as suggested by Axel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 16:15:22 +00:00

12 lines
308 B
Bash
Executable File

#!/bin/sh
# Make sure all apps have a MIME DB entry.
SYSTEM=$(/bin/finddir B_SYSTEM_DIRECTORY 2>/dev/null || echo "/boot/beos")
mimeset -apps -f "$SYSTEM/apps"
mimeset -f "$SYSTEM/documentation"
mimeset -apps -f "$SYSTEM/preferences"
mimeset -apps -f "$SYSTEM/servers"
mimeset -apps -f "/boot/apps"