staging.inyokaproject.org

Google Earth-Pro fliegt Orte nicht an

Status: Gelöst | Ubuntu-Version: Ubuntu 17.04 (Zesty Zapus)
Antworten |

Spacetaxi

Anmeldungsdatum:
24. Februar 2014

Beiträge: Zähle...

Hallo.

Ich habe festgestellt das es eine neue google earth version gibt, google earth pro

Ich habe die Problemlösung von google.earth (-stable) auf google earth-pro (-stable)übertragen.

Leider ohne Erfolg

gksudo gedit /usr/bin/google-earth-pro

Ist schonmal definitiv die richtige abzuändernde Datei.

In einem Forum habe ich den Befehl gefunden:

env LC_NUMERIC=en_US.UTF8 google-earth

daran habe ich einfach das "pro" angefügt

env LC_NUMERIC=en_US.UTF8 google-earth-pro 

Er startet google eart pro und das anfliegen der Orte wird möglich!!!

Danach habe ich:

gksudo gedit /usr/bin/google-earth-pro

geöffnet

Dies passt auch!!!

Beim übertragen der Lösung aus google earth (ohne pro) klappt es allerdings nicht

#!/bin/sh
export LD_LIBRARY_PATH=/opt/google/earth-pro/free/:"${LD_LIBRARY_PATH}"
export LC_ALL=de_DE.ISO-8859-15
cd /opt/google/earth-pro/free/
exec /opt/google/earth-pro/free/googleearth-bin "$@"
Exec=env LC_NUMERIC=en_US.UTF8 google-earth
# Always run Google Earth from this shell script and not
# Google Earth directly! This script makes sure the app looks
# in the right place for libraries that might also be installed
# elsewhere on your system.
#
# Ryan C. Gordon,  Thu Jul 20 14:32:33 PDT 2006

# Function to find the real directory a program resides in.
FindPath()
{
    fullpath="`echo $1 | grep /`"
    if [ "$fullpath" = "" ]; then
        oIFS="$IFS"
        IFS=:
        for path in $PATH
        do if [ -x "$path/$1" ]; then
               if [ "$path" = "" ]; then
                   path="."
               fi
               fullpath="$path/$1"
               break
           fi
        done
        IFS="$oIFS"
    fi
    if [ "$fullpath" = "" ]; then
        fullpath="$1"
    fi

    # Is the sed/ls magic portable?
    if [ -L "$fullpath" ]; then
        #fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
        fullpath=`ls -l "$fullpath" |sed -e 's/.* -> //' |sed -e 's/\*//'`
    fi
    dirname $fullpath
}

script_path=$(FindPath $0);

cd $script_path;
export LANG="de_DE.ISO-8859-15"
export LC_MESSAGES="de_DE.ISO-8859-15"

LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./googleearth-bin "$@"

Bearbeitet von XM-Franz:

Codeblöcke eingefügt.

Spacetaxi

(Themenstarter)

Anmeldungsdatum:
24. Februar 2014

Beiträge: Zähle...

Ich habe also überall das fehlende (-pro) drangehängt.

Das Programm öffnet aber danach nicht mehr, mache ich alles wieder rückgängig, öffnet es aber wieder.

Hat jemand eine Lösung??

Spacetaxi

(Themenstarter)

Anmeldungsdatum:
24. Februar 2014

Beiträge: Zähle...

Ich habs gerade selbst gelöst, man trägt unter #!/bin/sh überhaupt nichts ein, lediglich am Schluss wird:

export LANG="de_DE.ISO-8859-15"
export LC_MESSAGES="de_DE.ISO-8859-15"

in die Vorletzte Zeile eingefügt!!

Man startet gedit:

gksudo gedit /usr/bin/google-earth-pro

Das unten kann man kopieren und einfügen...fertig (Stolz)

#!/bin/sh
# Always run Google Earth from this shell script and not
# Google Earth directly! This script makes sure the app looks
# in the right place for libraries that might also be installed
# elsewhere on your system.
#
# Ryan C. Gordon,  Thu Jul 20 14:32:33 PDT 2006

# Function to find the real directory a program resides in.
FindPath()
{
    fullpath="`echo $1 | grep /`"
    if [ "$fullpath" = "" ]; then
        oIFS="$IFS"
        IFS=:
        for path in $PATH
        do if [ -x "$path/$1" ]; then
               if [ "$path" = "" ]; then
                   path="."
               fi
               fullpath="$path/$1"
               break
           fi
        done
        IFS="$oIFS"
    fi
    if [ "$fullpath" = "" ]; then
        fullpath="$1"
    fi

    # Is the sed/ls magic portable?
    if [ -L "$fullpath" ]; then
        #fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
        fullpath=`ls -l "$fullpath" |sed -e 's/.* -> //' |sed -e 's/\*//'`
    fi
    dirname $fullpath
}

script_path=$(FindPath $0);

cd $script_path;
export LANG="de_DE.ISO-8859-15"
export LC_MESSAGES="de_DE.ISO-8859-15"
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./googleearth-bin "$@"
# Always run Google Earth from this shell script and not
# Google Earth directly! This script makes sure the app looks
# in the right place for libraries that might also be installed
# elsewhere on your system.
#
# Ryan C. Gordon,  Thu Jul 20 14:32:33 PDT 2006

# Function to find the real directory a program resides in.
FindPath()
{
    fullpath="`echo $1 | grep /`"
    if [ "$fullpath" = "" ]; then
        oIFS="$IFS"
        IFS=:
        for path in $PATH
        do if [ -x "$path/$1" ]; then
               if [ "$path" = "" ]; then
                   path="."
               fi
               fullpath="$path/$1"
               break
           fi
        done
        IFS="$oIFS"
    fi
    if [ "$fullpath" = "" ]; then
        fullpath="$1"
    fi

    # Is the sed/ls magic portable?
    if [ -L "$fullpath" ]; then
        #fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
        fullpath=`ls -l "$fullpath" |sed -e 's/.* -> //' |sed -e 's/\*//'`
    fi
    dirname $fullpath
}

script_path=$(FindPath $0);

cd $script_path;
export LANG="de_DE.ISO-8859-15"
export LC_MESSAGES="de_DE.ISO-8859-15"
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./googleearth-bin "$@"

Bearbeitet von XM-Franz:

Codeblöcke eingefügt.

gerudf

Anmeldungsdatum:
21. Dezember 2011

Beiträge: Zähle...

unter Ubuntu 20.04 oder neuer funktioniert es bei mir so: Terminal Starten:

  1. sudo gedit /opt/google/earth/pro/google-earth-pro (eingeben oder kopieren)

2. in die vorletzte Zeile folgendes ergänzen (Texteditor)

export LC_NUMERIC=en_US.UTF-8

speichern
3. sudo gedit /opt/google/earth/pro/google-earth-pro.desktop (eingeben oder kopieren)
4. Exec=en_US.UTF-8 /opt/google/earth/pro/google-earth-pro %f (sollte so aussehen also um en_US.UTF-8Leerzeichen erweitern sonst nichts verändern)
5. speichern
6. Schliessen
Google Earth starten
Jetzt soltte alles funktionieren
Bei mir sehen die Dateien so aus:

(Google-Earth-Pro)

#!/bin/bash
# This script configures any environment prerequisites needed by Google Earth.
# Start Google Earth using this script rather than googleearth-bin directly.

# If you want to use an external copy of GPSBabel, you can specify it here.
# if [[ -z "$GPSBABEL" ]]; then export GPSBABEL="$(which gpsbabel)"; fi

# If DISPLAY is not set, try to autodetect a value.
if [[ -z "$DISPLAY" ]]; then
  echo "WARNING: DISPLAY environment variable is not set."
  x_displays=(/tmp/.X11-unix/X*)
  display="${x_displays[0]}"
  if [[ -e "$display" ]]; then
    export DISPLAY=":${display/*X/}"
    echo "        Found ${display}; setting DISPLAY=\"${DISPLAY}\"."
  else
    echo "        X11 display not detected; Google Earth may not run correctly."
  fi
fi

export LC_NUMERIC=en_US.UTF-8
"$(dirname "$(readlink -f "$0")")/googleearth-bin" "$@"
(Google-Earth-Pro.desktop)
[Desktop Entry]
Version=1.0
Name=Google Earth
GenericName=3D planet viewer
Comment=Explore, search and discover the planet
Exec=en_US.UTF-8 /opt/google/earth/pro/google-earth-pro %f
Terminal=false
MultipleArgs=false
Icon=google-earth-pro
Type=Application
Categories=Application;Network
MimeType=application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/earthviewer;application/keyhole

Bearbeitet von tuxifreund:

Forensyntax korrigiert.

Bearbeitet von tuxifreund:

Bitte verwende in Zukunft Codeblöcke, um die Übersicht im Forum zu verbessern!

Antworten |