This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Description
As an administrator installing pglet, I would like to have the flexibility to determine my own location e.g. /usr/local/bin/ for the application binary and any application data to be installed (respecting my permissions).
The value added would be that it gives me the control to organize binaries and application data on my operation system according to my own desire or to conform to constraints placed on me by a third party.
A simple solution would be that the installation script would check an environment variable e.g. $PGLET_INSTALL_DIR is set, and install to that location, and if it is not set then it falls back to the application developers chosen location.
The only implication with this is that in future if any user-specific files are needed by pglet then it should look for them from standardized locations and again fall back if needed. as a suggested solution pglet installations could conform to the XDG base dir standard ( see freedesktop.org or the arch wiki )
so for example it could check:
$XDG_CONFIG_HOME/pglet/
$XDG_DATA_HOME/pglet/
$XDG_CACHE_HOME/pglet/
and fall back as necessary.