OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
apps-services low very-common DISPUTE

Fix Flatpak apps that ignore the system GTK theme

archomarchyendeavouroscachyosmanjarohyprlandwaylandflatpakgtk
CORRECTED An auditor found the fix wrong or incomplete and rewrote it.
AUDIT NOTE

The sandbox explanation, the /usr reserved-path note, the flatpak override/--reset syntax and stylepak-git (present in the AUR, last updated 2025) are all correct. The defect is Option 1, presented as the 'cleanest' fix for GTK apps: org.kde.KStyle.Adwaita is a **Qt** KStyle extension and does nothing for GTK apps (Spotify, Obsidian, Zen and the other examples). The GTK equivalent is the org.gtk.Gtk3theme.* runtime extension family. Also worth stating: GTK4/libadwaita apps ignore GTK_THEME and host GTK themes entirely, so Option 2 will not darken them.

The cause above was not rewritten and may still contain the error described. The fix below is the corrected version.

Symptom

Every native app follows my dark theme, but Flatpak apps (Spotify, Bottles, Obsidian, Zen...) launch in bright white Adwaita light. Changing the Omarchy theme or running gsettings set org.gnome.desktop.interface gtk-theme ... does nothing for them.

Cause

Flatpak apps run in a sandbox that only sees themes inside their runtime, not /usr/share/themes or ~/.themes on the host. Flatpak's own documentation acknowledges there is no ideal way to apply host themes. The app also has no read access to the host theme directory by default.

Fix

Option 1 (cleanest, GTK apps): install the theme as a GTK runtime extension, not the Qt KStyle:


flatpak install flathub org.gtk.Gtk3theme.Adwaita-dark
# (search for others: flatpak search org.gtk.Gtk3theme)

Use flatpak install flathub org.kde.KStyle.Adwaita only for Qt/KDE Flatpaks. Option 2 (expose host themes + force by env var) and Option 3 (stylepak-git), and the cursor overrides, are correct as written. Caveat to add: GTK4/libadwaita apps do not read host GTK themes or GTK_THEME. They follow org.gnome.desktop.interface color-scheme, so for those set flatpak override --user --env=GTK_THEME= (unset) and rely on the portal's dark-preference setting instead.

Verify

Relaunch the app. It renders dark and the cursor matches the desktop. flatpak override --user --show <app-id> prints the overrides you set.

Sources

flatpak-apps-ignore-system-gtk-theme