Open SuNNjek opened 1 year ago
Ok, it seems the flatpak does provide a JRE but doesn't seem to use it by default. I can manually set the Java path in the settings to /app/jre/bin/java
. Would it be possible to have this set automatically by default or, even better, have the flatpak automatically detect it?
I have thought something similar. Although, currently we share settings with non-flatpak makemkv settings. So, they may conflict... :thinking:
I have a note saved for setting the custom java location for Flatpak MakeMKV:
Protection -> Custom Java executable location:
Find where Java is installed (in terminal): readlink -f $(which java)
E.g.:
/usr/lib/jvm/java-11-openjdk-amd64/bin/java
Click the button beside the location box and navigate to the Java folder and select the executable.
Because Flatpak doesn't have all read rights to the system, the location box is populated with something like:
/run/user/1000/doc/6f392a36/java
but it should work just fine.
I ran into this problem too today. The workaround by @Perkolator works like a charm.
When trying to archive a BD+ disc, I got the following warning in the output log:
Also, the resulting MKV file seemed to be slightly broken, or at least some segments were saved in the wrong order, causing skips in the movie. When running MakeMKV without flatpak (via the AUR package) so it would use the JRE I have installed on my system, the MKV file was saved correctly.
Would it be possible to include a Java runtime in this flatpak? You can look at how PrismLauncher (a Minecraft launcher, which also requires a JRE) does it here: https://github.com/flathub/org.prismlauncher.PrismLauncher/blob/master/org.prismlauncher.PrismLauncher.yml