Ignacio Taranto created BEAM-12534:
--------------------------------------
Summary: Support the XDG Base Directory Specification
Key: BEAM-12534
URL: https://issues.apache.org/jira/browse/BEAM-12534
Project: Beam
Issue Type: Bug
Components: runner-core
Affects Versions: 2.30.0
Environment: Linux
Reporter: Ignacio Taranto
Currently on Linux, Apache Beam puts it's cache under *~/.apache_beam/cache*
which is not nice for the user since it clutters he's/she's home directory.
I would suggest adding support for the [XDG Base Directory
Specification|https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html]
which basically states that:
* Configuration files must go under *$XDG_CONFIG_HOME/apache_beam* (with
*$HOME/.config/apache_beam* if *XDG_CONFIG_HOME* is not defined)
* User data files *$XDG_DATA_HOME/apache_beam*
(*$HOME/.local/share/apache_beam* if *XDG_DATA_HOME* is not defined)
* Cache files under *$XDG_CACHE_HOME/apache_beam* (*$HOME/.cache/apache_beam*
if *XDG_CACHE_HOME* is not defined).
This allow for easier backups and not cluttering the user's home directory with
application files.
I know that the separation in this 3 categories require some refactor, but at
least moving *$HOME/.apache_beam* to *$HOME/.local/share/apache_beam* would be
a huge improvement.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)