updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bin32-google-earth / googleearth
blob66402734a4489cb7ff2d251fd09610a9f34783fa
1 #!/bin/bash
2 GOOGLEEARTH_DATA_PATH="/opt/google-earth"
4 GTK_IM_MODULE=xim
5 QT_IM_MODULE=xim
6 GCONV_PATH=/usr/lib32/gconv/
7 GDK_PIXBUF_MODULE_FILE=/etc/gtk-2.0/gdk-pixbuf.loaders-32
8 GTK_IM_MODULE_FILE=/etc/gtk-2.0/gtk.immodules-32
9 GTK_PATH=/usr/lib32/gtk-2.0/
10 LD_LIBRARY_PATH="${GOOGLEEARTH_DATA_PATH}:/usr/lib32/:$LD_LIBRARY_PATH"
11 PANGO_RC_FILE="${GOOGLEEARTH_DATA_PATH}/pangorc"
12 export GCONV_PATH GDK_PIXBUF_MODULE_FILE GTK_IM_MODULE_FILE GTK_PATH LD_LIBRARY_PATH PANGO_RC_FILE
13 export GTK_IM_MODULE QT_IM_MODULE
15 cd "${GOOGLEEARTH_DATA_PATH}/"
18 # Fix for languages that use , instead of . for separating thousands from hundreds in numbers
19 LANGUAGES_AFFECTED="de_DE fr_FR it_IT"
20 SYSTEM_LANGUAGE=`echo ${LANG/.*}`
21 if [ `echo ${LANGUAGES_AFFECTED} | grep -c ${SYSTEM_LANGUAGE}` -gt 0 ]; then
22 export LC_NUMERIC=en_US.UTF8
26 exec "./googleearth-bin" $*