Open ReedClanton opened 9 months ago
Hey @ReedClanton,
Trying to replicate this bug. Are you using HomeManager standalone, or as a NixOs module?
@gmodena as a NixOS module. Here's my config.
I was able to reproduce.
To me is sounds very much similar to the issue reported in https://github.com/flatpak/flatpak/issues/5488 (that also mentions Steam).
Under the hood the home-manager module will run flatpak with the --user switch.
I can repro the issue reported here by running the following on a clean install:
flatpak --user --noninteractive --no-auto-pin install flathub cc.arduino.IDE2
@gmodena Yup, that looks like the same issue...
Description
Some flatpaks fail to launch when installed due to lacking access to
/var/lib/flatpak/repo
when they've been installed vianix-flatpak
with the Home Manager module. This can be fixed by installing at least one flatpak system wide via thenix-flatpak
NixOS module.Reproduce
flatpak
, any flatpak application, or anynix-flatpak
module installed.sudo nixos-rebuild switch --flake <pathToFlake>
with only the Home Manager module ofnix-flatpak
installed.com.github.tchx84.Flatseal
,cc.arduino.IDE2
, andcom.valvesoftware.Steam
vianix-flatpak
's Home Manager module.flatpak run --user com.github.tchx84.Flatseal
and verify that it launches as it should. This is an example of a flatpak that functions as it should.flatpak run --user cc.arduino.IDE2
and verify that it produces the bellow output, hangs, and fails to launch a GUI:Launch Arduino IDE 2 again with the same command and verify that it exhibits the same behavior.
Launch Steam with
flatpak run --user com.valvesoftware.Steam
and verify that it produces the bellow output and exists (note, I think only the last line is relevant to this issue):nix-flatpak
along with a flatpak. For example, ASCii Draw (io.github.nokse22.asciidraw
).Note(s)
This issue occurs with other flatpaks, I've only chosen the above flatpak applications because they demonstrate the range of behaviors I seen when utilizing the Home Manager module of
nix-flatpak
.Blocked By
@gmodena pointed out that this issue is a flatpak one. Thus this is blocked by https://github.com/flatpak/flatpak/issues/5488. Once that's resolved, this can be re-tested.