Ok, looks like you are right and I, just by pure chance, had the same profile on both
.var/app/com.leinardi.gwe/config. And I probably have misinterpreted the ‘just work’ from the conversation I had on the flatpak’s irc channel:
<leinardi> hey guys, more questions: when I install the flatpak I see these file access rules: file access: home:ro, xdg-run/dconf, ~/.config/dconf:ro
<leinardi> but I need to save data on $XDG_CONFIG_HOME, is this ok or should I use different permissions?
<nanonyme> Would it be enough to persist the data inside app sandbox?
<leinardi> do I need special rules or the $XDG_CONFIG_HOME would return already the right one?
<nanonyme> Do you have any --persist switches?
<nanonyme> TingPing probably knows these better than me though...
<leinardi> not sure what they are but I can't find any occurrence in my project (manifest included)
<nanonyme> That .config is also a bit wonky since inside sandbox you mose likely XDG_CONFIG_HOME pointing to config and not .config
<nanonyme> Most like have even
<nanonyme> TingPing, did you get any further with the settings portal?
<TingPing> nanonyme, just waiting on glib changes
<TingPing> leinardi, if you don't use gsettings in your app then you won't need dconf
<TingPing> leinardi, but i'd suggest you use gsettings... its a nice api
<leinardi> TingPing, I need $XDG_CONFIG_HOME to store a sqlite db containing all my persistent data, I use ORM and, unless gsettings privide support for one, I don't think I would want to switch to it
<TingPing> leinardi, fair enough. well everything should 'just work' for you
<leinardi> TingPing, nice! thanks :)
Since I ended up with the same profile on both host and flatpak, I wrongly assumed it was using the same folder. Sorry about the confusion.
Now I’m not so sure what to do, but I still like the idea of using the same profiles no matter from where you install the app.