Enhancement - Application Installation Conforms to XDG Specification #62
Comments
Right, at the moment it's only a single executable. Customizing installation directory with Re: XDG standard - do I correctly understand that |
you are correct, |
OK, what I'm going to do is to add support for While looking for |
OK, I've updated https://pglet.io/pglet.sh and the docs: https://pglet.io/docs/tutorials/bash#installing-pgletsh - let me know how it works. |
I've suggested minor updates: and slight change to the example install command to use ... It might also be good to amend the NOTE in the docs to say that it is assumed |
Great, thank you! |
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.
The text was updated successfully, but these errors were encountered: