Release GPlates as Snap or Flatpak for Linux

Here’s a Debian package to try on Ubuntu 23.04 (let me know if it works and I’ll add one to the GPlates 2.3 public release downloads).

However you’ll need to start GPlates from the terminal using…

QT_QPA_PLATFORM=xcb gplates

If you start it by typing just gplates then the GPlates viewport will get corrupted (ie, no globe is visible). And you’ll see the error message “Error: Unknown error”.

It has to do with Wayland (which is a replacement for the X11 window system). Specifying QT_QPA_PLATFORM=xcb forces GPlates to use X11 instead. I tracked it down to a failure to initialise OpenGL (via the GLEW library).

By the way, an alternative to specifying QT_QPA_PLATFORM=xcb is to disable Wayland. That also works.

I think typing just gplates worked on the older Ubuntu 22.04 because it wasn’t using Wayland for some reason (as indicated by… "Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway." …after running gplates).

The next GPlates release will use Vulkan instead of OpenGL. So I think the above is a suitable workaround for Ubuntu 23.04 considering we’re no longer using OpenGL going forward (and there are various issues getting GPlates to work properly with OpenGL under Wayland, such as here and here).

Yes I think this is a good idea, and will look into it for future releases (we had a quick discussion here: about Flatpak vs Snap vs AppImage).