ipfs/ipfs-desktop

Store files in the proper location on Windows.

Open

#1,656 opened on Sep 28, 2020

View on GitHub
 (11 comments) (1 reaction) (0 assignees)JavaScript (5,632 stars) (912 forks)batch import
P2area/windowseffort/daysexp/wizardhelp wantedkind/maintenance

Description

  • 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.

Contributor guide

Store files in the proper location on Windows. · ipfs/ipfs-desktop#1656 | Good First Issue