public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [flatpaks/flatpak-runtime] f45: Register org.freedesktop.Platform.GL extension point for NVIDIA drivers
@ 2026-09-11 14:41 Kalev Lember
  0 siblings, 0 replies; only message in thread
From: Kalev Lember @ 2026-09-11 14:41 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : flatpaks/flatpak-runtime
            Branch : f45
            Commit : 6477d9068d63158f39486c4f267421cb298d22cc
            Author : Kalev Lember <klember@redhat.com>
            Date   : 2021-10-01T16:35:12+02:00
            Stats  : +13/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/flatpaks/flatpak-runtime/c/6477d9068d63158f39486c4f267421cb298d22cc?branch=f45

            Log:
            Register org.freedesktop.Platform.GL extension point for NVIDIA drivers

This makes it possible to use the NVIDIA drivers distributed on flathub.

https://bugzilla.redhat.com/show_bug.cgi?id=1785251

---
diff --git a/container.yaml b/container.yaml
index 3d34f8e..7971be8 100644
--- a/container.yaml
+++ b/container.yaml
@@ -11,6 +11,16 @@ flatpak:
         --env=GST_PLUGIN_SYSTEM_PATH=/app/lib64/gstreamer-1.0:/usr/lib64/gstreamer-1.0
         --env=LD_LIBRARY_PATH=/app/lib64
         --env=XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/share
+        --extension=org.freedesktop.Platform.GL=version=1.4
+        --extension=org.freedesktop.Platform.GL=directory=lib64/GL
+        --extension=org.freedesktop.Platform.GL=subdirectories=true
+        --extension=org.freedesktop.Platform.GL=no-autodownload=true
+        --extension=org.freedesktop.Platform.GL=autodelete=false
+        --extension=org.freedesktop.Platform.GL=add-ld-path=lib
+        --extension=org.freedesktop.Platform.GL=download-if=active-gl-driver
+        --extension=org.freedesktop.Platform.GL=enable-if=active-gl-driver
+        --extension=org.freedesktop.Platform.GL=autoprune-unless=active-gl-driver
+
     # For applications, appstream-compose is run automatically along with other processing
     # of the tree. For runtimes, we have to run it manually. flatpak-module-tools local
     # builds have issues if the cleanup script outputs to stdout, hence the 1>&2
@@ -27,6 +37,9 @@ flatpak:
 
         rm -rf /etc/flatpak-builder/
 
+        # Create a directory for mounting org.freedesktop.Platform.GL extension point
+        mkdir -p /usr/lib64/GL
+
         touch -d @0 /usr/share/fonts /usr/share/fonts/*
         fc-cache -rs
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 14:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 14:41 [flatpaks/flatpak-runtime] f45: Register org.freedesktop.Platform.GL extension point for NVIDIA drivers Kalev Lember

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox