I started testing on a lubuntu 18.04 vanilla installation. (more distros will follow)
You have already done a great work with flatpak and I am very optimistic for what is coming next.
Here follow some observations to continue.
1. The repo methodology was used for this first test (the rest methodologies will be tested too). (a) Please update the first post to indicate that adding the default repo is mandatory to allow freedesktop runtime (180MB) dependency auto-resolution.
$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
(b) What is the freedesktop runtime used for in Oolite flatpak?
As far as I know, the usage of a runtime is mandatory. The freedesktop runtime is the most lightweight runtime of the 3 available. It also provides some extensions (see below).
2. The app installation command complained as shown below
$ flatpak install pritter org.oolite.Oolite/master
error: Error searching remote pritter: Can't find ref org.oolite.Oolite/master
The app installation syntax that actually worked was
$ flatpak install pritter org.oolite.Oolite/x86_64/master
$ flatpak install pritter org.oolite.Oolite
Update the first post accordingly.
3. The desktop menu launcher did not appear after the app was installed. Installing the oolite.org (own installer) made the desktop menu launcher to appear boasting both versions of Oolite. Rebooting the machine has also forced the desktop meny launcher to appear. Please, note that lubuntu was a vanilla installation with no initial "Games" desktop menu entry and that own packager has no such issue. Is there a known behavior/issue of flatpak on that?
That confirms my observations. I don't see desktop items appearing until next login. Other flatpaks don't show that behavior, going to investigate.
4. Please update the desktop launchers to display "Oolite (flatpak)" and "Oolite-trunk (flatpak)" respectively.
Will be done.
5. It seems that to get flatpak apps, built with OpenGL, to work with proprietary Nvidia graphics drivers, one can only hope that the runtime for the installed version of Nvidia drivers is available on FlatHub. (a) This means that, if the Ooliter installs the latest Nvidia proprietary drivers, playing Oolite will not be possible till the relevant runtime makes it onto FlatHub, right?
The relevant drivers are available as an extension to the freedesktop runtime. You can try
flatpak install flathub org.freedesktop.Platform.GL
and then use tab completion to show the available extensions.
(b) Was this the issue you faced with the missing
Maybe, I just compiled ligGLU from source and bundled it with oolite to make it work. Going to investigate, whether using the extensions would be the cleaner approach.
6. Oolite is using command line options (e.g. --novsync, --nosound, --nosplash, etc.). Would it be possible to add the possibiity to pass command line options at run-time? Browsing the Oolite flatpak installation directory structure I stumbled upon this
$ cat /var/lib/flatpak/app/org.oolite.Oolite/current/active/export/bin/org.oolite.Oolite
exec /usr/bin/flatpak run --branch=master --arch=x86_64 org.oolite.Oolite "$@"
It seems that it is ready to handle command line options. However, the
script, found in the repo, has stripped the "$@".
Should be an easy fix, going to implement that
Since the build of the repo is not automated yet, it could take some time for the changes to arrive (that is, until I have time to gpg-sign and rsync the repo). If you added the repo, issuing
should receiver the latest version.