Need help with storing dot files

Daniel Kasak d.j.kasak.dk at gmail.com
Fri Oct 26 10:58:53 UTC 2018


On Fri, Oct 26, 2018 at 5:37 PM Alexander Larsson <alexl at redhat.com> wrote:

> On Fri, Oct 26, 2018 at 7:37 AM Daniel Kasak <d.j.kasak.dk at gmail.com>
> wrote:
> >
> > Hi all.
> >
> > I'm trying to work around a strange issue with unixODBC, where I get
> unicode issues if I use the global odbcinst.ini file ( in my case,
> /app/etc/odbcinst.ini ). I've found previously that if I make an exact copy
> of the file to my home directory ( ie ~/.odbcinst.ini ), then things work
> fine. I've checked with strace, and both files are being read.
> >
> > Anyway, I'll be taking up this issue with unixODBC people ASAP. But in
> the meantime ... it would be great if I could persist the local version. I
> can open a debug console, eg:
> >
> > flatpak run -d --command=bash ${app_name}
> >
> >  ... manually copy /app/etc/odbcinst.ini to ~/.odbcinst.ini and then
> launch my app, and it works fine. But ~/.odbcinst.ini is not persisted.
> This is confusing, because other things in the user's home folder *are*
> persisted ( eg we create a config database in ~/.smart_config/config.db ).
> >
> > Is there a way to make ~/.odbcinst.ini persist? I'm not sure if I can
> make unixODBC read from other locations - and it's flaky enough as it is.
>
> This sounds weird. There should be nothing special about
> ~/.odbcinst.ini. What file access are you giving your flatpak?
> --filesystem=home?
>
>
Hi, and thanks for the response. I don't currently expose the filesystem. I
would like to - so users can load SQL files via a browser for example - but
this also complicates things like the .odbcinst.ini file, which would not
be valid for the application as it would point to libs that aren't usable.
What happens under this circumstance ( ie when I don't use
--filesystem=home )? As I mentioned, my app's config ( which lives in a dot
folder ) is persisted. Maybe dot files are not persisted, but dot folders
are?

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20181026/6ebecbf2/attachment.html>


More information about the Flatpak mailing list