Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 29th, 2010  |  syntax: Bash  |  size: 0.48 KB  |  hits: 76  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2. GOOGLEEARTH_DATA_PATH="/opt/google-earth"
  3.  
  4. LD_LIBRARY_PATH=.:${GOOGLEEARTH_DATA_PATH}:${LD_LIBRARY_PATH}
  5. export LD_LIBRARY_PATH
  6.  
  7. cd "${GOOGLEEARTH_DATA_PATH}/"
  8.  
  9. # Fix for languages that use "," instead of "." for separating thousands from hundreds in numbers
  10. LANGUAGES_AFFECTED="de_DE it_IT"
  11. SYSTEM_LANGUAGE=`echo ${LANG/.*}`
  12. if [ `echo ${LANGUAGES_AFFECTED} | grep -c ${SYSTEM_LANGUAGE}` -gt 0 ]; then
  13.         export LC_NUMERIC=en_US.UTF8
  14. fi
  15.  
  16. exec "./googleearth-bin" $*