nmcli: Move history file to `$XDG_CACHE_HOME`
Summary
Moves the .nmcli-history
file from it's previous location (~/.nmcli-history
) to $XDG_CACHE_HOME/nmcli-history
.
Purpose
Make nmcli
comply with the XDG Base Directory Specification and remove the history dotfile from the users home directory. nmcli
is one of very few applications (that I use at least), which does not adhere to the XDG Base Directory Specification in this regard.
Closes: #1615 (closed)
Checklist
Please read https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md before opening the merge request. In particular, check that:
-
the subject for all commits is concise and explicative -
the message for all commits explains the reason for the change -
the source is properly formatted -
any relevant documentation is up to date -
you have added unit tests if applicable -
the NEWS file is updated when the change deserves to be mentioned, for example for new features, behavior changes, API deprecations, etc.
Edited by Andreas Hartmann