Flatpak It is a utility for software deployment, package management and application virtualization of Linux desktops. Like the Snap package, Flatpak provides a sandbox environment that isolates the application from the rest of the system.
Using Flatpak is not only useful for security, but also because there are many programs that can be downloaded as Flatpak packages. You can check out Flathub View the list of Flatpak applications that can be installed. The Flatpak software package can also be provided on the download page of the program. For information on how to set up Flatpak and how to add the Flathub repository in your Linux distribution, please check This page.
Get the Flatpak app to use the current Gtk theme
There are many reasons why Flatpak is great, but there is one annoying thing. Due to the sandbox, the Flatpak application uses the default Gnome theme (Adwaita) instead of any Gtk theme you are currently using. The solution to this problem is to install the current Gtk theme from Flathub. In this way, the Flatpak application will automatically select your current system Gtk theme and use it instead of Adwaita.
This is the Font Finder application installed from Flathub. As you can see, I am using the Adapta Gtk theme, but Font Finder does not:
After applying the “fix” mentioned in this article, this is again the “font finder”:Claim:
- Flatpak 0.8.4+
- In order to support themes, the Flatpak application needs to use the Gnome 3.24+ platform
- Need to select the same theme installed from Flathub in the Gnome Tweaks application (the theme must have the exact same name)
Not all Gtk themes are available on Flathub, so you cannot theme the Flatpak application without any Gtk themes in it. To see all the Gtk themes available on Flathub, run this command (after Configuration Flatpak and add Flathub repository):
flatpak remote-ls flathub | grep org.gtk.Gtk3theme
Currently, Flathub contains about 11 themes and 25 theme variants. The list is as follows:
$ flatpak remote-ls flathub | grep org.gtk.Gtk3theme org.gtk.Gtk3theme.Adapta org.gtk.Gtk3theme.Adapta-Eta org.gtk.Gtk3theme.Adapta-Nokto org.gtk.Gtk3theme.Adapta-Nokto-Eta org.gtk.Gtk3theme.Ambiance org.gtk.Gtk3theme.Arc org.gtk.Gtk3theme.Arc-Dark org.gtk.Gtk3theme.Arc-Dark-solid org.gtk.Gtk3theme.Arc-Darker org.gtk.Gtk3theme.Arc-Darker-solid org.gtk.Gtk3theme.Arc-solid org.gtk.Gtk3theme.Breeze org.gtk.Gtk3theme.Breeze-Dark org.gtk.Gtk3theme.Communitheme org.gtk.Gtk3theme.Greybird org.gtk.Gtk3theme.Materia org.gtk.Gtk3theme.Materia-dark org.gtk.Gtk3theme.Materia-light org.gtk.Gtk3theme.Mint-Y org.gtk.Gtk3theme.Mint-Y-Dark org.gtk.Gtk3theme.Mint-Y-Darker org.gtk.Gtk3theme.Numix org.gtk.Gtk3theme.Pop org.gtk.Gtk3theme.Pop-light org.gtk.Gtk3theme.elementary
To install the theme, use this command (again in plus Flathub repository! ):
flatpak install flathub org.gtk.Gtk3theme.
For example, here is how to install the Ambiance Gtk theme:
flatpak install flathub org.gtk.Gtk3theme.Ambiance
This adjustment also applies to icon themes, but Flathub currently only provides 2 icon themes. You can check by running the following command:
flatpak remote-ls flathub | grep org.freedesktop.Platform.Icontheme