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 support for 'autoprune-unless' for extensions #577

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

chrisawi
Copy link
Contributor

This is an existing flatpak feature that was never added to flatpak-builder, so it couldn't be used in app manifests.

I've simply duplicated the code for enable-if and changed the name. That was enough to get autoprune-unless to pass through from the manifest to the app metadata.

To help address flatpak/flatpak#2718, I looked into why flatpak uninstall --unused removes 64bit nvidia drivers, but not 32bit. I discovered that the org.freedesktop.Platform.GL extension point was defined with autoprune-unless=active-gl-driver, but org.freedesktop.Platform.GL32 was not, and that the latter is defined in each app that requires it, rather than in the runtime.

With this in place, as long as all apps that define the extension point use autoprune-unless=active-gl-driver, the GL32 extension should be removed just like the GL extension. I've only tested on my non-nvidia system, but it does seem to work as expected.

Steam is actually already using autoprune-unless in its manifest, but it's currently being ignored.

This is an existing flatpak feature that was never added to
flatpak-builder, so it couldn't be used in app manifests.
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.

2 participants