Comment 20 for bug 1160289

Revision history for this message
Alessander Botti Benevides (alessanderbotti) wrote :

I confirm that Cip Man's solution works for Ubuntu 19.04 in pt-br.
The following command solved the problem:

LC_NUMERIC=en_EN google-earth-pro

Since updates in Google Earth may change its wrapper script (what would make the bug reappear), instead of patching the script, I changed the related .desktop file by:

1. Copying the root version of google-earth-pro.desktop to a local place:

cp /usr/share/applications/google-earth-pro.desktop ~/.local/share/applications/google-earth-pro.desktop

2. Making the new google-earth-pro.desktop executable:

chmod +x ~/.local/share/applications/google-earth-pro.desktop

3. Opening it in a text editor:

xdg-open ~/.local/share/applications/google-earth-pro.desktop

3.1. Changing the line
Exec=/opt/google/earth/pro/google-earth-pro %f

To
Exec=env LC_NUMERIC=en_EN /opt/google/earth/pro/google-earth-pro %f

3.2 Removing the following line, which seems to be ill-formed:
MultipleArgs=false

4. Registering the new .desktop file:

desktop-file-install --dir=~/.local/share/applications/ --rebuild-mime-info-cache ~/.local/share/applications/google-earth-pro.desktop

update-desktop-database ~/.local/share/applications/

Now, GNOME Shell should open an instance of Google Earth where this issue is solved.