-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Use OS standard paths of application configuration files #1648
Comments
Why is it better? |
For Mac OS it's perhaps arguable at present. However as it becomes less of a Unix CLI tool and more a cross-platform background service, it becomes better practice to use actual Mac OS paths. In any case, it's an awful lot easier to find files (I'm thinking of keys and dapps here) in the Mac OS Finder when they're stored in The case is more easily made on Windows, where |
cargo uses |
Just because you can do it, doesn't mean you should do it. We have had issues with users being unable to find configuration files/keys precisely because they were not stored in the expected, OS-standardised, place. |
cargo and rustup are currently getting a fair bit of flack for not using XDG Base dir specification as well. |
@gavofyork yeah i agree but also one thing is that on windows probably keys should not be stored in hidden folder |
reports in the gitter channel have so far not supported that assertion. If there's an argument for allowing users to access key files directly (and I'm not sure there is) then it should be done in a proper way such as placing them in |
At the moment, Parity installs will likely break horribly on a domain network because of the installation of the blockchain (currently ~6GB for me) into the user's home directory which is then synced over the network (assuming default network configuration). Not likely a big deal at the moment since not a lot of corporate users install it, but will become a bigger issue over time as Ethereum grows in popularity. See #2159 for more details on layout, or feel free to |
Might be useful: https://github.com/AndyBarron/app-dirs-rs |
Closed with #3828 |
@tomusdrw Unfortunately the attached change don't appear to resolve this issue. In particular, the chain data should go in One could argue that the used library doesn't quite do the right thing for Windows as |
Also, config (keys) should go in |
Issue to fix |
I have submitted a PR at andybarron/app-dirs-rs#18, if/when it is accepted a library update will resolve this issue. However, because migration is difficult I strongly recommend resolving the issue before you release the current set of changes (if it isn't too late already). I'm not sure if anyone is seeing these comments as this is a closed PR, if someone is reading these, please let me know. If I don't hear anything on this issue I'll open a new one to help get some visibility as I believe the current solution is bad as it breaks Windows functionality (roaming replication/backup/storage). |
@MicahZoltu hearing you loud and clear :) Thanks for taking a closer look into the best locations to keep things. The set of changes hasn't been in a published release yet, so no issue in changing it to something more relevant now. |
Currently parity directory is located under
~/.parity
on all operating systems.Should be:
~/Library/Parity
;\Users\Username\AppData\Roaming\Parity
(* not sure ifRoaming
is correct here).Steps:
The text was updated successfully, but these errors were encountered: