ipfs/ipfs-desktop

Store files in the proper location on Windows.

Open

#1,656 建立於 2020年9月28日

在 GitHub 查看
 (11 留言) (1 反應) (0 負責人)JavaScript (5,632 star) (912 fork)batch import
P2area/windowseffort/daysexp/wizardhelp wantedkind/maintenance

描述

  • OS: Windows
  • Version of IPFS Desktop: 0.12.2

Describe the bug Installing IPFS Desktop on Windows results in folders in %USERPROFILE% as well as cache and DB files in the roaming profile.

To Reproduce Steps to reproduce the behavior:

  1. Install IPFS Desktop on Windows
  2. Notice that you have a .ipfs and .ipfs-desktop folder in %USERPROFILE% and %APPDATA/IPFS Desktop contains cache files, databases, blob storage, etc.

Expected behavior Cache files, file storage, databases, and per-machine configuration should all be stored in %LOCALAPPDATA%/ipfs/. Per user configuration (I'm not sure if IPFS has any of this, maybe the list of pinned files?) should be stored in %APPDATA%/ipfs/. Nothing should be stored in %USERPROFILE% (aka: %HOME%) unless the user *explicitly tells the app to do so such as via a save dialog box.

Additional context Both Linux and OSX also have environment variables that instruct applications where the appropriate place for files is. I believe it is called XDG_CONFIG though I'm not personally familiar with it.

貢獻者指南