Progress starts at 0.0 :)
Use a 30s timeout in between, so it stays displayed even in qemu where things are a bit slow. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37702 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
_progress () {
|
_progress () {
|
||||||
notify --type progress --app mimeset \
|
notify --type progress --app mimeset \
|
||||||
|
--timeout ${3:-30} \
|
||||||
--icon /boot/system/apps/DiskProbe \
|
--icon /boot/system/apps/DiskProbe \
|
||||||
--messageID $0_$$ \
|
--messageID $0_$$ \
|
||||||
--title "Updating file MIME types..." \
|
--title "Updating file MIME types..." \
|
||||||
--progress $1 "$2" >/dev/null
|
--progress $1 "$2" >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
_progress 0.1 "desktop files"
|
_progress 0.0 "desktop files"
|
||||||
|
|
||||||
# Make sure files on the desktop are mimeset first
|
# Make sure files on the desktop are mimeset first
|
||||||
|
|
||||||
@@ -37,4 +38,4 @@ _progress 0.7 "application (by signature)"
|
|||||||
|
|
||||||
query -f 'BEOS:APP_SIG=*' | xargs --no-run-if-empty mimeset -apps -f
|
query -f 'BEOS:APP_SIG=*' | xargs --no-run-if-empty mimeset -apps -f
|
||||||
|
|
||||||
_progress 1.0 "done"
|
_progress 1.0 "done" 10
|
||||||
|
|||||||
Reference in New Issue
Block a user