From d7553dfed081f84704ef209c09fde295c0a8ed9f Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Sat, 4 Apr 2009 16:15:22 +0000 Subject: [PATCH] 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 --- data/common/boot/post_install/mime_update.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/data/common/boot/post_install/mime_update.sh b/data/common/boot/post_install/mime_update.sh index 2dbb517e0e..976f6a691d 100755 --- a/data/common/boot/post_install/mime_update.sh +++ b/data/common/boot/post_install/mime_update.sh @@ -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"