From 72813d6ebd50bff9515c1756397986e33781f4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sundstr=C3=B6m?= Date: Sun, 16 Aug 2009 17:09:03 +0000 Subject: [PATCH] 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 --- data/common/boot/post_install/mime_update.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data/common/boot/post_install/mime_update.sh b/data/common/boot/post_install/mime_update.sh index b9c10b526f..7f6a741ee0 100755 --- a/data/common/boot/post_install/mime_update.sh +++ b/data/common/boot/post_install/mime_update.sh @@ -1,5 +1,14 @@ #!/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") @@ -9,3 +18,4 @@ mimeset -f "$SYSTEM/documentation" mimeset -apps -f "$SYSTEM/preferences" mimeset -apps -f "$SYSTEM/servers" mimeset -apps -f "/boot/apps" +