<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Fri, Oct 26, 2018 at 5:37 PM Alexander Larsson <<a href="mailto:alexl@redhat.com">alexl@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Oct 26, 2018 at 7:37 AM Daniel Kasak <<a href="mailto:d.j.kasak.dk@gmail.com" target="_blank">d.j.kasak.dk@gmail.com</a>> wrote:<br>
><br>
> Hi all.<br>
><br>
> 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.<br>
><br>
> 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:<br>
><br>
> flatpak run -d --command=bash ${app_name}<br>
><br>
>  ... 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 ).<br>
><br>
> 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.<br>
<br>
This sounds weird. There should be nothing special about<br>
~/.odbcinst.ini. What file access are you giving your flatpak?<br>
--filesystem=home?<br><br></blockquote><div><br></div><div>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?</div><div><br></div><div>Dan</div></div></div>