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
This commit is contained in:
Philippe Houdoin 2009-04-04 16:15:22 +00:00
parent d38e00569e
commit d7553dfed0
1 changed files with 7 additions and 5 deletions

View File

@ -2,8 +2,10 @@
# Make sure all apps have a MIME DB entry.
mimeset -apps -f /boot/system/apps
mimeset -f /boot/system/documentation
mimeset -apps -f /boot/system/preferences
mimeset -apps -f /boot/system/servers
mimeset -apps -f /boot/apps
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"