Mutable Directories

Installation and usage on Linux / Installation unter Linux
Post Reply
joshperry
Posts: 2
Joined: 04 Mar 2025 08:01

Mutable Directories

Post 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).
admin
Administrator
Posts: 7
Joined: 07 Apr 2008 10:35

Re: Mutable Directories

Post by admin »

Yes. you can add options for the pathes resources and files in the start script:

-Djava.library.path="/...." -DheliX.path.resources="/...."
joshperry
Posts: 2
Joined: 04 Mar 2025 08:01

Re: Mutable Directories

Post by joshperry »

Excellent! Thank you
Post Reply