This should improve the first boot user experience by mimesetting the files on the desktop before mimesetting anything else. Please review.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32445 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9946ba71ad
commit
72813d6ebd
@ -1,5 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/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.
|
# Make sure all apps have a MIME DB entry.
|
||||||
|
|
||||||
SYSTEM=$(/bin/finddir B_SYSTEM_DIRECTORY 2>/dev/null || echo "/boot/system")
|
SYSTEM=$(/bin/finddir B_SYSTEM_DIRECTORY 2>/dev/null || echo "/boot/system")
|
||||||
@ -9,3 +18,4 @@ mimeset -f "$SYSTEM/documentation"
|
|||||||
mimeset -apps -f "$SYSTEM/preferences"
|
mimeset -apps -f "$SYSTEM/preferences"
|
||||||
mimeset -apps -f "$SYSTEM/servers"
|
mimeset -apps -f "$SYSTEM/servers"
|
||||||
mimeset -apps -f "/boot/apps"
|
mimeset -apps -f "/boot/apps"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user