Skip to content

Configuration files should be stored in $XDG_CONFIG_HOME (by default at ~/.config) #558

Open
@nagromc

Description

Is your feature request related to a problem? Please describe.

I strive to have a clean home directory, but there are many files related to WakaTime in ~:

Describe the solution you'd like to see

A lot of softwares find their configuration in $XDG_CONFIG_HOME (by default at ~/.config), which helps to have a less cluttered ~.

WakaTime could use the same convention to place the configuration files such as .wakatime.cfg in $XDG_CONFIG_HOME/wakatime (which would be ~/.config/wakatime by default), and data files such as .wakatime.db in $XDG_DATA_HOME/wakatime or $XDG_CACHE_HOME/wakatime.

Describe alternatives you've considered

Another solution would be to group them in a new directory such as ~/.wakatime.

Additional context

This feature request describes the behavior in a Unix environment, but macOS and Windows have their own conventions, even if the XDG Base Directory Specification leaks on them a little. I let you choose what suits the most for those platforms.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions