Page 1 of 1

Mutable Directories

Posted: 04 Mar 2025 08:18
by joshperry
For most modern operating systems applications are not allowed to modify paths under where there files are installed. They instead must only modify files under mutable directories, like appdata on windows, or .config on Linux.

I'm attempting to package heli-x on a Linux OS where directories beneath where it's installed are not mutable, I wonder if it is possible to add a parameter to heli-x to specify a directory, outside the installation directory, where downloadable file can be stored.

e.g the error I'm encountering:

Code: Select all

The directory could not be created:                                                                                                                      
/nix/store/8qqsjnhdx79k6asinx4bwmkpdv46s1k0-HELI-X/resources/Translation
In this particular case, NixOS does not allow directories under the installation to be modified (they are root-owned readonly).

Re: Mutable Directories

Posted: 04 Mar 2025 08:38
by admin
Yes. you can add options for the pathes resources and files in the start script:

-Djava.library.path="/...." -DheliX.path.resources="/...."

Re: Mutable Directories

Posted: 04 Mar 2025 23:24
by joshperry
Excellent! Thank you