-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disk location #46
Comments
Hopefully Rust left behind stupid bugs in its file and path name handling for good! The standard C++ library that Monero uses on Windows does not support Unicode in the stream classes. Names with Unicode characters mostly occur of course if the user's name has some "special" character in it. |
Rust's |
Yes, a flexible systemd/initd script would otherwise be difficult to setup. Monerod systemd service use by default the
From a user experience, I hate searching through different folders. Cuprate can split files but then it should be clearly explained in the wiki or other accessible documentation.
This one is up to anyone natural language interpretation. Is cuprate.toml more of a config file or an application support file. It is more a settings file than anything else. I think |
I think:
I meant that macOS has 2 locations for files. Looking at this again, I think we should just stick to Apple's standard, using |
Makes sense indeed. Let's go for Application Support then
I'm not sure if the |
XDG is the defacto Linux standard. Every program I've ever used calls |
Implemented in #67 with the standards in the original post. |
What
Where will Cuprate store files on disk?
Closes monero-project/monero#8202 in spirit ❤️
Most likely
OS standards are settled and are available in the widely used https://docs.rs/dirs.
Reference:
Examples:
C:\Users\Alice\AppData\Roaming\Cuprate\cuprate.toml
/Users/Alice/Library/Application Support/Cuprate/cuprate.toml
/home/alice/.config/cuprate/cuprate.toml
What else
There are some remaining questions:
~/.config/cuprate/cuprate.toml
there as well~/.config
,~/.cache
,~/.local/share
) be skipped?/etc/cuprate.toml
)?Supporting user override PATHs will also need to be supported, for all file types (config, cache, database, etc).
The text was updated successfully, but these errors were encountered: