#12 GTK themes in containers
Closed by yselkowitz. Opened by jaydoubleu.

Is there any way to use "add-extensions" from container.yaml and allow it to use the org.gnome.Platform to use the gtk themes ?


Do you have an example of a flatpak-builder manifest that does what you are
trying to do? Are your trying to add in GTK themes that aren't part of the
runtime?

On Thu, Dec 31, 2020, 8:22 AM Jay W pagure@pagure.io wrote:

jaydoubleu reported a new issue against the project:
flatpak-module-tools that you are following:
Is there any way to use "add-extensions" from container.yaml and allow it to use the org.gnome.Platform to use the gtk themes ?

To reply, visit the link below or just reply to this email
https://pagure.io/flatpak-module-tools/issue/12

Well I might have misunderstood how is this supposed to work.
Fedora built flatpaks don't seem to have any GTK integration and just uses the default theme supplied by fedora runtime.

For example, I have installed my gtk theme via flathub.

When I run flatpak run --runtime=org.fedoraproject.Platform/x86_64/f33 org.gnome.gedit the gedit is unthemed.

However when I run flatpak run --runtime=org.gnome.Platform/x86_64/3.38 org.gnome.gedit the gedit is themed properly.

I've searched if is there a way to "overlay" other runtimes on top of each other and I got to "add-extensions" object mentioned here: https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html , https://github.com/flatpak/flatpak/wiki/Extensions

So I thought this could be a way to overlay the "org.gnome.Platform" runtime (which provides the themes ) on top of fedora one built by flatpak-module-tools.

I found some code references for similar "extensions" here:

https://raw.githubusercontent.com/flatpak/freedesktop-sdk-images/1.6/org.freedesktop.Sdk.json.in

https://gitlab.collabora.com/smcv/flatdeb/blob/master/runtimes/net.debian.flatpak.Games.yaml#L56

Fedora Flatpaks now have extension support for gtk3 themes, and a few themes are available. If your preferred desktop's theme is not available, please file an issue at https://gitlab.com/fedora/sigs/flatpak/fedora-flatpaks/-/issues

Metadata Update from @yselkowitz:
- Issue status updated to: Closed (was: Open)

Metadata