Googleearth sur testing

Trouvé une rustine pour faire fonctionner google-earth version 7

https://bugs.launchpad.net/ubuntu/+source/googleearth-package/+bug/1160289/comments/5

Aussi invraisemblable que ça puisse paraitre forcer LANG=en_US fait fonctionner le pointage automatique sur le lieu défini dans la zone de recherche

je l’ai fait comme ça

  • Avec root dans /opt/google/earth/free

  • créer un fichier earth-us.sh dans /opt/google/earth/free
    y mettre

#!/bin/bash
LANG=en_US google-earth

rendre ce fichier exécutable

chmod +x earth-us.sh

  • Modifier le lanceur

gedit google-earth.desktop
changer la ligne Exec=

Exec=/opt/google/earth/free/earth-us.sh %f

ce qui donne

root@debian:/opt/google/earth/free# cat earth-us.sh
#!/bin/bash
LANG=en_US google-earth
root@debian:/opt/google/earth/free# cat google-earth.desktop
[Desktop Entry]
Version=1.0
Name=Google Earth
GenericName=3D planet viewer
Comment=Explore, search and discover the planet
Exec=/opt/google/earth/free/earth-us.sh %f
Terminal=false
MultipleArgs=false
Icon=google-earth
Type=Application
Categories=Application;Network
MimeType=application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/earthviewer;application/keyhole
root@debian:/opt/google/earth/free#
  • Pour lancer, double cliquer sur google-earth.desktop et accepter en cliquant “accepter malgré tout”

  • Un lanceur à mettre dans .local/share/applications/ pour que google-earth apparaisse dans les menus avec une icône qui va bien:

:~$ cd .local/share/applications/
:~/.local/share/applications$ cat google-earth.desktop

[Desktop Entry]
Version=1.0
Name=Google Earth
GenericName=3D planet viewer
Comment=Explore, search and discover the planet
Exec=/opt/google/earth/free/earth-us.sh %f
Terminal=false
MultipleArgs=false
Icon=/opt/google/earth/free/product_logo_32.png
Type=Application
Categories=Application;Network
MimeType=application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/earthviewer;application/keyhole

Google Earth
7.1.8.3036 (64-bit)
Build Date
1/17/2017
Build Time
8:57:31 am
Renderer
OpenGL
Operating System
Linux (4.9.0.0)
Video Driver
X.Org
Max Texture Size
8192x8192
available video memory
information not available
Server
kh.google.com

apt show google-earth-stable

Package: google-earth-stable
Version: 7.1.8.3036-r0
Status: install ok installed
Priority: optional
Section: net
Maintainer: Google Earth Team <google-earth-support@google.com>
Installed-Size: 189 MB
Pre-Depends: dpkg (>= 1.14.0)
Depends: lsb-core (>= 3.2), libfontconfig1, libx11-6, libxrender1, libxext6, libxtst6, libglu1-mesa, libglib2.0-0, libsm6
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Explore, search and discover the planet
 Google Earth lets you fly anywhere to see satellite imagery, 3D buildings, 3D trees, terrain, Street View, planets and much more.

NB: Pour installer google-earth-stable

https://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb

Pour satisfaire la dépendance lsb-core, il vous faut donc être sur une version de Debian qui gère lsb-core (Debian 8)
Sur les versions Debian 9 et supérieur, lsb-core est remplacé par lsb-compat, ce qui permets de satisfaire la dépendance.

  • Un peu de propreté post installation
    J’ai pas envie que google cherche d’improbable mise à jour:

root@debian:/etc/cron.daily# rm google-earth