adapt_authoring icon indicating copy to clipboard operation
adapt_authoring copied to clipboard

Allow for outside configuration folders, such as /etc/ and ~/.config

Open Pacman99 opened this issue 5 years ago • 0 comments

Affected Area

Configuration of the authoring tool.

Requested Feature

It would be great if the tool looked at configuration folders, such as ~/.config/adapt_authoring or /etc/adapt_authoring, for configuration values.

Use Case

This would be useful to package the authoring tool in linux distributions. Specifically, I am using nixos and if configuration was separate from the project code, I could package it for the distribution and add it to its software repositories. I am sure this would be possible for other linux distributions too, if configuration was not in the same folder as code.

Current Workaround

At the moment I could package the project, by running the install script with default options. Then after overwrite conf/ as a symlink to /etc/adapt_authoring. That would allow users to place config in /etc/adapt_authoring/config.json and the tool would read it. This is of course very hacky and it would be better if the code could read the etc/xdgconfig folder as another option for configuration.

Additional Information

Also as part of this, the install script should have an option to skip the configuration portion. And I'm not sure, but I think the check for the outside folders should come after checking the conf/ folder, so that it doesn't current users.

Pacman99 avatar May 23 '20 22:05 Pacman99