updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / google-earth-deb / googleearth-x86_64
blob19b7c87a882da81c5b769d8e93624c055c9f1c3a
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}/"
17 # Fix for languages that use "," instead of "." for separating thousands from hundreds in numbers
18 LANGUAGES_AFFECTED="de_DE fr_FR it_IT"
19 SYSTEM_LANGUAGE=`echo ${LANG/.*}`
20 if [ `echo ${LANGUAGES_AFFECTED} | grep -c ${SYSTEM_LANGUAGE}` -gt 0 ]; then
21 export LC_NUMERIC=en_US.UTF8
24 exec "./googleearth-bin" $*