[Live-demo] delay timeout and menu items

Hamish hamish_b at yahoo.com
Wed Mar 17 23:11:08 PDT 2010


Hi,

fyi I made a replacement for the start_geoserver delay script but was waiting until after branching to commit. As that is being reused I though
I'd speak up now. It looks like:

Index: install_geoserver.sh
===================================================================
--- install_geoserver.sh        (revision 3424)
+++ install_geoserver.sh        (working copy)
@@ -104,8 +104,15 @@
 
 ## Add a script that will launch the browser after starting GS
 cat << EOF > $GS_HOME/bin/start_admin.sh
+#!/bin/sh
+
 $GS_HOME/bin/startup.sh &
-(sleep 10; echo "25"; sleep 10; echo "50"; sleep 10; echo "75"; sleep 10; echo "100") | zenity --progress --auto-close --text "GeoServer starting"
+
+DELAY=40
+(for TIME in \`seq 1 \$DELAY\` ; do sleep 1; echo \$TIME; done) | \\
+   zenity --progress --auto-close --text "GeoServer starting"
+
+zenity --info --text "Starting web browser ..."
 firefox "http://localhost:$GS_PORT/geoserver/web/"
 EOF
 

if there is some 5 sec timeout avail. for the "Starting browser.." msg
it should be added too.


also I notice in the catch-all Applications->Education menu there are
a couple of programs listed which did not make it into our Geospatial
menu. If that's you, last chance to put in a request...
(sorry I don't have it in front of me to list exactly)


Hamish



More information about the Osgeolive mailing list