[Live-demo] Re: [OSGeo] #754: GeoMajas doesn't work on first click

OSGeo trac_osgeo at osgeo.org
Wed Aug 24 18:06:03 PDT 2011


#754: GeoMajas doesn't work on first click
----------------------+-----------------------------------------------------
 Reporter:  camerons  |       Owner:  live-demo@…              
     Type:  defect    |      Status:  new                      
 Priority:  critical  |   Milestone:                           
Component:  LiveDVD   |    Keywords:  5.0, geomajas            
----------------------+-----------------------------------------------------

Comment(by hamish):

 Replying to [comment:3 camerons]:
 > Located the issue down to the startup script, which is downloaded as
 part of geomajas:
 {{{
 >  user at user:~$ /usr/local/bin/start_geomajas.sh
 >  awk: {print int(0.5+100*\$1/\$2)}
 >  awk:                    ^ backslash not last character on line
 >  awk: {print int(0.5+100*\$1/\$2)}
 >  awk:                    ^ backslash not last character on line
 >  failed to create drawable
 >  user at user:~$
 }}}
 > Offending code is coming from the introduced delay clause:
 {{{
 > DELAY=40
 >
 > (
 > for TIME in \`seq \$DELAY\` ; do
 >   sleep 1
 >   echo "\$TIME \$DELAY" | awk '{print int(0.5+100*\$1/\$2)}'
 > done
 > ) | zenity --progress --auto-close --text "Loading Geomajas"
 }}}

 right, the '\' were in there as part of the
  cat << EOF > start.sh
 code in the other install scripts, which need backticks and $ chars to the
 quoted. The 7 `\` in that script should be removed.

 the script comes in from the upstream installer package, so must be fixed
 in the http://files.geomajas.org/release/geomajas-$GEOMAJAS_VERSION-
 bin.zip file.


 thanks,
 Hamish

 ps- put code within `{{{`, `}}}` to stop trac from trying to interpret it
 as markup.

-- 
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/754#comment:5>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Osgeolive mailing list