haiku/data/common/boot/post_install/mime_update.sh
Rene Gollent 2e38e90efb Update fallback path used if finddir fails to correspond to the new directory structure. Resolves ticket #4019.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-13 22:07:31 +00:00

12 lines
310 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/system")
mimeset -apps -f "$SYSTEM/apps"
mimeset -f "$SYSTEM/documentation"
mimeset -apps -f "$SYSTEM/preferences"
mimeset -apps -f "$SYSTEM/servers"
mimeset -apps -f "/boot/apps"