Flatpak - Configuration files inside the Sandbox

Hi,
i have an issue with configuration files inside a Flatpak Sandbox:
The Application “GNOME Genius” (org.gnome.Genius) stores it’s configuration under ~/.gnome2, but this directory does not exist in the Sandbox. When i create the directory manually and run Gnome Genius with:

  • flatpak run --command=sh org.gnome.Genius
  • mkdir .gnome2
  • /app/bin/gnome-genius

then everything works as expected (e.g. saving preferences). But as soon as the Sandbox gets terminated, this directory disappears.
So my question is: How can i create this directory to persist Sandbo termination?
Thanks,
Egon

What version of Endless OS are you using?
To check which version of Endless OS you are in Settings :arrow_right: Details

To get support with Genius you have to report the bug here :arrow_down:

Hi,
im using EOS 3.5.7.
After doing a little more research, it seems that it’s probably related to a upstream problem. In the build configuration for the flatpak there is no “–filesystem=home” (save/load programs, …) or “–persist=.gnome2” (save configuration) specified.

As a workaround until the bug gets fixed upstream, you can manually override the permissions for GNOME Genius:

Only allow to save the configuration:

flatpak --user override --persist=.gnome2 org.gnome.Genius

or, allow full access to your Home directory:

flatpak --user override --filesystem=home org.gnome.Genius

Upstream issue: https://github.com/flathub/org.gnome.Genius/issues/2

Yours,
Egon