haiku/data/common/boot/post_install/mime_update.sh
Ingo Weinhold 24e6e28430 Don't use the "-apps" option for the Desktop files. That it worked before
probably indicates that we're doing something wrong.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-04 17:43:38 +00:00

23 lines
572 B
Bash
Executable File

#!/bin/sh
# Make sure files on the desktop are mimeset first
for f in $(/bin/finddir B_DESKTOP_DIRECTORY 2>/dev/null\
|| echo "/boot/home/Desktop")/*; do
if [ -f $f ]; then
mimeset -f $f
fi
done
# 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"
query -f 'BEOS:APP_SIG=*' | xargs --no-run-if-empty mimeset -apps -f