Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Flatpak host GL driver support #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

orowith2os
Copy link

@orowith2os orowith2os commented Mar 12, 2023

Closes #155

Needs testing to be sure everything works properly. I don't own a NVIDIA GPU, so I can't do it.

You can test by installing, making sure /var/lib/flatpak/extension/org.freedesktop.Platform.GL.host/x86_641.4 exists and is filled with the NVIDIA files, and running FLATPAK_GL_DRIVERS=host flatpak run test.openglorvulkan.app.

@ptr1337
Copy link
Contributor

ptr1337 commented Mar 12, 2023

I don't know if this really should be enabled as default. That will raise the package size.

@orowith2os
Copy link
Author

orowith2os commented Mar 12, 2023

Many people also use flatpak, especially as it makes things Just Work, and several applications only officially support Flatpak for cross-distribution distribution like Bottles and OBS Studio. I think it makes sense to have it enabled by default, especially since using a development NVIDIA driver isn't as easy with Flatpak, which some people might want to do.

If bubblewrap supported making symlinks not dangle inside of a sandbox, I could just symlink these, but I can't, so we can copy them over. Plus, you'd have about the same storage usage as if you used Flatpak like before anyways. I'm not worrying about it.

@Tk-Glitch
Copy link
Member

I'm not convinced about having that enabled by default. We got quite a few users who don't want anything flatpak on their machine, so I'd like to keep "Arch-style" packages as the default. Other than that, nice addition ! Thanks for looking into it orowith2os ! 🐸 ❤️

@orowith2os
Copy link
Author

This still needs testing, once it's confirmed to work I'm open to disabling it. I'll also add a lil console note for it, since it seems appropriate to mention it there.

@konkitoman
Copy link

I cannot run any flatpak application that uses GPU drivers from the latest vulkan dev driver 535.43.22, so i tested this!

On my machine i merged this into master!

To test if the flatpak host driver is installed i run paru -Q flatpak-host-driver-tkg
And the output was flatpak-host-driver-tkg 535.43.22-252

There is no test.openglorvulkan.app
But i tried to run OBS and ATLauncher with FLATPAK_GL_DRIVERS=host flatpak run

OBS message Failed to initialize video. Your GPU may not be supported, or your graphics drivers may need to be updated.
ATLauncher message Failed to find any valid GLFW profile. Trying 4.6: GLFW error: [0x10006]GLX: Failed to load GLX

More info

I removed all flatpak packages that had org.freedesktop.GL in there name but that before i installed this!
flatpak update wants to install the org.freedesktop.GL.default
but FLATPAK_GL_DRIVERS=host flatpak update do not!

There is directories in /var/lib/flatpak/extension/org.freedesktop.Platform.GL.host/x86_64/1.4 and /var/lib/flatpak/extension/org.freedesktop.Platform.GL.host/i386/1.4

But in flatpak list output there is no org.freedesktop.Platform.GL.host!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install as a Flatpak extension
4 participants