Hey instead of asking users to make the change for their thing to work with wayland, why not just force x11?
diff --git a/PKGBUILD b/PKGBUILD
index 1de5b28..2dd15e2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -56,6 +56,7 @@ package() {
# desktop file
mv "${pkgdir}/${_installdir}/google-earth-pro.desktop" "${pkgdir}/usr/share/applications"
+ sed -i 's/Exec=/Exec=env QT_QPA_PLATFORM=xcb /g' "${pkgdir}/usr/share/applications/google-earth-pro.desktop"
# icons
local _res
diff --git a/google-earth-pro.install b/google-earth-pro.install
index 2603fda..ab43d00 100644
--- a/google-earth-pro.install
+++ b/google-earth-pro.install
@@ -14,15 +14,11 @@ yellow="${bold}$(tput setaf 3)"
post_install() {
note "The launcher is called 'google-earth-pro'."
- note "If you are using Wayland, modify the Exec line in the .desktop file:
- Exec=env -u QT_QPA_PLATFORMTHEME -u QT_QPA_PLATFORM /opt/google/earth/pro/google-earth-pro %f"
note "If experiencing graphical corruption:
$ rm -r ~/.googleearth/Cache/"
}
post_upgrade() {
- note "If you are using Wayland, modify the Exec line in the .desktop file:
- Exec=env -u QT_QPA_PLATFORMTHEME -u QT_QPA_PLATFORM /opt/google/earth/pro/google-earth-pro %f"
note "If experiencing graphical corruption:
$ rm -r ~/.googleearth/Cache/"
}
Pinned Comments
iyanmv commented on 2022-12-13 22:54 (UTC)
I will not update (for now) to the latest version 7.3.6.9326 because it crashes continuously for me.
stronnag commented on 2022-06-18 17:03 (UTC)
Thanks, unfortunate timing then.
For reference, with Gnome shell / wayland I need to
to avoid
Det commented on 2017-08-24 15:33 (UTC) (edited on 2017-12-05 16:17 (UTC) by Det)
✔ NOTE
The "Free" Google Earth has been dropped: https://support.google.com/earth/answer/168344?hl=enAll future updates go to Google Earth Pro (also free): https://aur.archlinux.org/packages/google-earth-pro/