Hi,
First, thanks a lot for Java GI and those examples!
Focusing on the HelloTemplate example, I'm experiencing some issues with the flatpak packaging. I'm quite new to flatpak, so I might miss obvious elements.
So far:
- I managed to run the app using the gradle run task without any issue 👍
- I managed to build the flatpak... with some manipulations that were not mentioned in the doc (but might have been obvious to someone more familiar with flatpak):
- missing packages: I had install the following first, using
flatpak --user install:org.gnome.Platform//45org.gnome.Sdk//45org.freedesktop.Sdk.Extension.openjdk//23.08
- flatpak-builder was failing on gradle installDist, complaining that there were no JDK, so in flatpak/my.example.HelloTemplate.json, I:
- changed build commands to
"build-commands" : [ "/usr/lib/sdk/openjdk/installjdk.sh", "gradle installDist" ], - changed append-path to
"append-path": "/usr/lib/sdk/openjdk/gradle/bin:/app/jre/bin"
- changed build commands to
- missing packages: I had install the following first, using
This got me to a point where the flatpak is built and installed, but now whenever I try to run it, there's a 20-30s lag before the actual program gets executed (it runs fine aside from this). While it is stuck, the last line displayed is:
F: Running 'bwrap --args 38 -- xdg-dbus-proxy --args=41'
Not sure how to resolve that. Not even sure this is related to the HelloTemplate sample, and not some flatpak issue.