Automatically installing Gtk themes in Flatpak

in #utopian-io7 years ago (edited)

In order for Flatpak'd applications to integrate with the system they require having themes installed but sadly this has always been a manual process. Thankfully Flatpak has a feature for basic conditional statements in runtimes for automatically downloading or enabling extensions if a condition is met. These conditions are defined within flatpak itself so I added active-gtk-theme.

This condition currently pulls from DConf looking up the gtk-theme key in the org.gnome.desktop.interface schema which is set automatically by GNOME and thanks to a recent addition KDE.

On other platforms it would be necessary to pull the information from XSettings but that is sadly a non-trivial protocol and would likely mean a dependency on xlib which is not desired so has not been implemented at this time.

Once the condition is met at update or install time flatpak will automatically install matching extensions.

Merge request: https://github.com/flatpak/flatpak/pull/1181 and
https://github.com/flatpak/freedesktop-sdk-images/pull/60



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

I will accept this work. However, in future if you are submitting very small contributions you should merge 2 or 3 pull requests to submit in the development category.

You can contact us on Discord.
[utopian-moderator]

Hey @tingping I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.27
TRX 0.20
JST 0.038
BTC 96668.41
ETH 3695.55
USDT 1.00
SBD 3.86