You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 30, 2026. It is now read-only.
I would like to make all my scripts XDG-Base-Directory-compliant, in order not to clutter our $HOMEs anymore 😋
IDEA OF IMPLEMENTATION:
for instance, replace hardcoded $HOME/.local/share by data_home where data_home is defined at runtime by
data_home=${XDG_DATA_HOME-$HOME/.local/share}
That is, by default, the data_home will be located at $HOME/.local/share. But the user can change the location of the files by exporting the XDG_DATA_HOME environment variable to another location!
I would like to make all my scripts XDG-Base-Directory-compliant, in order not to clutter our
$HOMEs anymore 😋IDEA OF IMPLEMENTATION:
for instance, replace hardcoded
$HOME/.local/sharebydata_homewheredata_homeis defined at runtime bydata_home=${XDG_DATA_HOME-$HOME/.local/share}That is, by default, the
data_homewill be located at$HOME/.local/share. But the user can change the location of the files byexporting theXDG_DATA_HOMEenvironment variable to another location!