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
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!
The text was updated successfully, but these errors were encountered:
I would like to make all my scripts XDG-Base-Directory-compliant, in order not to clutter our
$HOME
s anymore 😋IDEA OF IMPLEMENTATION:
for instance, replace hardcoded
$HOME/.local/share
bydata_home
wheredata_home
is defined at runtime bydata_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 byexport
ing theXDG_DATA_HOME
environment variable to another location!The text was updated successfully, but these errors were encountered: