chrys87 / fenrir

An TTY screenreader for Linux.
GNU Lesser General Public License v3.0
46 stars 14 forks source link

Do not use sketchy path determination #59

Closed ethindp closed 2 years ago

ethindp commented 2 years ago

Fenrir currently hard-codes its path and makes various hard assumptions about the Linux system it runs on. It assumes, for example, that the configuration directory is either /etc/fenrirscreenreader or fenrir_binary_location/../../config. This doesn't work on distributions like NixOS, where it is (not) best practice to store configuration under /etc (as that is used for global system configuration, and package-based configuration usually resides in the nix store to be manipulated with configuration options within configuration.nix). It is therefore highly advisable to provide a command-line option to override this determination and to specify the settings root.