Skip to content

Client: OS-specific data directory location #999

Open
@rumkin

Description

@rumkin

Description

Default data directory location definition should be OS-specific and follow common practices. Storing blockchain data in home is usual behaviour for most blockchain software. In thee same time applications installed by OS's package manager store its data in one well-known place, for example MySQL on Ubuntu stores its data in /var/lib/mysql. This is prescribed by FHS (Filesystem Hierarchy Standard by Linux Foundation) which prescribes to put globally installed package data to /var/lib/<libname>, (FHS /var/lib). MacOS and Windows has such folders too.

While there is no some common solution where to store data in $HOME, there are some best practices to follow to do it in more convenient way.

Possible Implementation

For local installation: to put data into the next directories:

  • Linux: $HOME/.local/lib/ethereumjs.
  • MacOS $HOME/Library/Application Support/ethereumjs.
  • Windows: C:/Users/<username>/AppData/ethereumjs.

For system package managers installations:

  • Linux: /var/lib/ethereumjs.
  • MacOS: /Library/Application Support/ethereumjs.
  • Windows 10: C:/ProgramData.

Links

Metadata

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