There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Flatpak GTK apps not follwing the chosen GTK theme.

Hello. I’m using Debian testing with KDE Plasma 5.27. I’m experiencing a problem where GTK Flatpaks are not following the chosen GTK theme despite giving them permissions to access .themes and .icons folders found in the home directory. I tried the running the following commands in the terminal:

flatpak override --filesystem=xdg-config/gtk-4.0:ro flatpak override --filesystem=xdg-config/gtk-3.0:ro

I even tried to specify a certain GTK theme to be chosen, that resulted in the flatpak changing to an ugly white-adwaita theme. I should note that this is happening exclusively with GTK Flatpaks, QT Flatpaks and GTK deb packages don’t seem to have this problem. What am I missing here? Any help would be appreciated.

pH3ra ,
@pH3ra@lemmy.ml avatar

In this video explains everything you should know about flatpak theming.
As others said, you probably haven’t installed the chosen theme yet.

PipedLinkBot ,

Here is an alternative Piped link(s): piped.video/watch?v=IYXlgzrZRIE

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I’m open-source, check me out at GitHub.

mitram2 ,

Have you installed xdg-desktop-portal-gtk?

josephsh5 OP ,

xdg-desktop-portal-gtk?

Yes, it’s already installed.

hellvolution ,
@hellvolution@lemmygrad.ml avatar

Old ass adwaita/libadwaita bug; happens on every distro… I’m really starting to think it is more related to libadwaita itself than to flatpak 😭

furzegulo ,
furzegulo ,

here’s the same as text

sudo apt install xdg-desktop-portal-gtk

systemctl --user edit xdg-desktop-portal.service

  1. paste these two lines

<span style="color:#323232;">[Service]
</span><span style="color:#323232;">
</span><span style="color:#323232;">Environment="XDG_CURRENT_DESKTOP=sway"
</span>

systemctl --user restart xdg-desktop-portal.service

josephsh5 OP ,

This also refused to work unfortunately.

med ,

Is it being forced to look for a theme installed via flatpak maybe?

josephsh5 OP ,

How do I know that exactly?

med ,

Apparently there has been a problem with gtk4 apps and theming in flatpak, only supporting adwaita light and dark - only found vague reference to it though, nothing concrete.

Try


<span style="color:#323232;">flatpak-metadata sockets
</span>

To see if you can find the GTK_THEME environment variable.

You’ve given it permission to access the themes folder, now you need go point it at the themes


<span style="color:#323232;">sudo flatpak override --env=GTK_THEME=my-theme 
</span><span style="color:#323232;">sudo flatpak override --env=ICON_THEME=my-icon-theme
</span>

Where my-theme is the theme name, e.g. Adwaita-dark

Apparently the flatseal gui has some functionality to set the theme too! Will check it out tomorrow to see what’s up.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines