this post was submitted on 04 Sep 2023
58 points (98.3% liked)

Linux

47231 readers
786 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 1 year ago (1 children)

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

[–] [email protected] 10 points 1 year ago

Here is an alternative Piped link(s): https://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.

[–] [email protected] 8 points 1 year ago (1 children)

Have you installed xdg-desktop-portal-gtk?

[–] [email protected] 1 points 1 year ago

xdg-desktop-portal-gtk?

Yes, it's already installed.

[–] med 1 points 1 year ago (1 children)

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

[–] [email protected] 2 points 1 year ago (1 children)

How do I know that exactly?

[–] med 3 points 1 year ago

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

flatpak-metadata sockets

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

sudo flatpak override --env=GTK_THEME=my-theme 
sudo flatpak override --env=ICON_THEME=my-icon-theme

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.

[–] [email protected] 0 points 1 year ago (1 children)
[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

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
[Service]

Environment="XDG_CURRENT_DESKTOP=sway"

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

[–] [email protected] 2 points 1 year ago

This also refused to work unfortunately.