4c74ef98f2
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32963 a95241bf-73f2-0310-859d-f6bbb57e9c96
24 lines
580 B
Bash
Executable File
24 lines
580 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 -apps -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
|
|
|