Open alkazar opened 3 years ago
A fix could use our post update hook script and might look like:
This logic would have to run post-update but also any time you try run a flatpak app because the user could restart early or launch a flatpak before the update is complete. Doing the check/update before the app launches will be a poor experience if there is no or poor network though. Might take a while to timeout.
I had this issue again with GamerOS 22 since the NVIDIA drivers have been updated again and thought of a possible solution :
Instead of launching Kodi directly, wrap the launch command in a script that will :
1) Check if the currently installed driver matches the currently installed flatpak runtime
2) If they match, launch Kodi
3) If they don't, display a warning (much like it's done for Steam Buddy's password) saying an update is necessary, while running flatpak update tv.kodi.Kodi
in the background, then launch Kodi
If the update takes too, it could be aborted by providing the user with steps on the warning screen : for example, invite him to open the Steam overaly and kill the app that way.
Kodi (and likely other flatpaks) depends on the
org.freedesktop.Platform.GL.nvidia
flatpak runtime.If you install Kodi while using nvidia 450-57, for example, the
org.freedesktop.Platform.GL.nvidia-450-57
runtime will be installed and Kodi will function correctly.If you then update your nvidia drivers, to say 455-38 and run flatpak kodi:
Kodi fails. Installing
org.freedesktop.Platform.GL.nvidia-455-38
with flatpak will fix the issue.The simplest work-around is:
This will pick up the latest runtime.
Another work-around is to run:
flatpak update
orflatpak update tv.kodi.Kodi