[ 
https://issues.apache.org/jira/browse/BEAM-12534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17522471#comment-17522471
 ] 

Kenneth Knowles commented on BEAM-12534:
----------------------------------------

Reading this more deeply, I actually don't really agree with the XDG doc. Is 
this widespread? They want to organize things by type, an approach which is by 
nature subjective, ever-changing, and non-exhaustive. Organizing files by 
product or piece of software on the other hand is unambiguous, objective, and 
stable.

> Support the XDG Base Directory Specification
> --------------------------------------------
>
>                 Key: BEAM-12534
>                 URL: https://issues.apache.org/jira/browse/BEAM-12534
>             Project: Beam
>          Issue Type: Wish
>          Components: cross-language, runner-core
>    Affects Versions: 2.30.0
>         Environment: Linux
>            Reporter: Ignacio Taranto
>            Priority: P3
>
> 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:
>  * Cache files under go under *$XDG_CACHE_HOME* (*$HOME/.cache* if 
> *XDG_CACHE_HOME* is not defined).
>  * Configuration files go under *$XDG_CONFIG_HOME* (with *$HOME/.config* if 
> *XDG_CONFIG_HOME* is not defined)
>  * User data files go under *$XDG_DATA_HOME* (*$HOME/.local/share* if 
> *XDG_DATA_HOME* is not defined)
> In the case of Apache Beam the paths would be:
>  * *$XDG_CACHE_HOME/apache_beam*
>  * *$XDG_CONFIG_HOME/apache_beam*
>  * *$XDG_DATA_HOME/apache_beam*
> 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.20.1#820001)

Reply via email to