volta-cli / rfcs

RFCs for changes to Volta
Other
17 stars 14 forks source link

XDG Base Directory Specification #12

Open stefanpenner opened 6 years ago

stefanpenner commented 6 years ago

WIP, will flesh this out later:

What?

We should consider abiding by the XDG Base Directory Specification

This makes where notion lives on disk configurable, specifically it would abide by the following ENV variables:

Why?

How

Technically, likely via the XDG crate

Others Using XDG

Mostly just a list of whats in my $XDG_CONFIG_HOME, I suspect there are more.

Unresolved

Where do we put stuff in windows?

Maybe something like:

C:\Users\<username>\AppData\Local\notion-cli\notion\{dirs...}

Other Discussion

soc commented 6 years ago

@stefanpenner Regarding Windows (and macOS) you could have a look at https://crates.io/crates/directories. It's similar to the xdg crate but supports the right directories on Linux, Windows and macOS. (Disclaimer: I wrote it.)