Skip to content
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

fix: move IPFS_PATH to ~/.ipfs-desktop #1079

Merged
merged 1 commit into from
Sep 4, 2019
Merged

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Sep 3, 2019

This fixes the issue caused by having IPFS_PATH in the same directory as the app code. That would fail in multiple circumstances:

  1. When the app was updated, IPFS_PATH would get deleted.
  2. macOS gatekeeper paths randomization for security purposes creates a read-only directory for the app files when the app isn't executed from secure locations (such as ~/Applications) and it would make it fail.

Closes #1077.

License: MIT
Signed-off-by: Henrique Dias [email protected]

This fixes the issue caused by having IPFS_PATH in the same
directory as the app code. That would fail in multiple circunstances:

1. When the app was updated, IPFS_PATH would get deleted.
2. macOS gatekeeper paths randomization for security purposes creates
a read-only directory for the app files when the app isn't executed
from secure locations (such as ~/Applications) and it would make it fail.

License: MIT
Signed-off-by: Henrique Dias <[email protected]>
@hacdias hacdias requested review from lidel and olizilla September 3, 2019 07:35
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hacdias
Copy link
Member Author

hacdias commented Sep 3, 2019

@lidel for the same reason we did it initially: on ipfs.sh and ipfs.cmd we don't know where config.json is and even if we did, we'd need to parse JSON, which wouldn't get easy to get cross-platform

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, this PR works as expected on Linux.

Digression: I am worried this separate file will produce bugs in the long run. Additional code is required to keep it in sync with config.json and we need to remember about it. This concern should not block this PR form being merged, just something to think about :)

@hacdias hacdias merged commit 0d0f71a into master Sep 4, 2019
@hacdias hacdias deleted the fix/ipfs-path-file branch September 4, 2019 07:52
@yeehi
Copy link

yeehi commented Dec 29, 2020

@hacdias @lidel
There seems to be no way to choose the folder for .ipfs/blocks using the GUI in ipfs-desktop. If you install ipfs-desktop using an appimage, you can't readily change this setting from the command line. By default, the data folder goes into your system drive, and that can fill up rapidly.

I hope that we can a) be prompted where to set this important, potentially large folder when ipfs-desktop is first launched b) accomplish this with the ipfs-dekstop GUI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error launching 0.9.0-beta.2
3 participants