stylix icon indicating copy to clipboard operation
stylix copied to clipboard

gtk: Steam flatpak does not start with gtk enabled

Open codebam opened this issue 8 months ago • 8 comments

A typical log looks like:

✦ ❯ com.valvesoftware.Steam
bwrap: Can't make symlink at /home/codebam/.themes/adw-gtk3: existing destination is ../../../nix/store/wf71q57bq0lv5q3jmal08lx2vh5mn9br-home-manager-files/.themes/adw-gtk3

codebam avatar Apr 04 '25 02:04 codebam

Removing this file allows steam to start, or disabling the gtk target

codebam avatar Apr 04 '25 02:04 codebam

For reference, Flatpak support was added in commit 963e77a3a4fc ("gtk: add support for theming Flatpak applications (#693)"). Although, https://github.com/danth/stylix/pull/696 does not implement Flatpak support, it also patches Steam and may be vaguely related.

Cc: @brckd

trueNAHO avatar Apr 04 '25 14:04 trueNAHO

It's probably a Flatpak related issue, because my Steam app from Nixpkgs works fine. The gtk.flatpakSupport option in Stylix overrides .themes/adw-gtk3, so disabling it seems to be the only solution for now. I might add an option to disable it for individual Flatpaks in the future.

I also wonder why the Flatpak version tries to override that theme in the first place, since Steam doesn't use GTK. It might be useful to check what dependencies the Steam Flatpak installs.

brckd avatar Apr 04 '25 14:04 brckd

This was fixed, and I was able to remove gtk.flatpakSupport.enable = false;

codebam avatar May 21 '25 22:05 codebam

Nice! Do you know what fixed it?

brckd avatar May 22 '25 13:05 brckd

Not sure. It could have been because before I didn't have stylix enabled in nixos, only home manager?

codebam avatar May 22 '25 18:05 codebam

I'm on unstable (25.11) freshly updated today 2025-06-01, but the problem is still persisting. I'm also using the nixos stylix module, so that can't be it.

dafitt avatar Jun 01 '25 13:06 dafitt

Here is more information, why that happens: https://github.com/flathub/com.valvesoftware.Steam/issues/66 What i could read, because of --persist=. which is the default for now.

dafitt avatar Jun 01 '25 15:06 dafitt