Frogging-Family / nvidia-all

Nvidia driver latest to 396 series AIO installer
726 stars 62 forks source link

Install as a Flatpak extension #155

Open orowith2os opened 1 year ago

orowith2os commented 1 year ago

Due to flatpak's sandboxed nature, it has to bundle libraries such as graphics drivers. However, it (the runtime) provides a way to work around this a bit: org.freedesktop.Platform.GL.host.

The PKGBUILD would need to install the binaries to the appropriate /var directory. Symlinks wouldn't work, as they wouldn't resolve inside of bubblewrap.

I'm working on documentation to improve the situation for drivers like this over at https://github.com/flatpak/flatpak-docs/pull/382.

https://blog.tingping.se/2018/08/26/flatpak-host-extensions.html

Flatpak also has a utility built in that runs on every flatpak update so that the NVIDIA drivers are synced, however this needs to be ran whenever the host NVIDIA driver is updated.